I have tried to use .delete but it throws the foll...
# ask-community
s
I have tried to use .delete but it throws the following error JSON.delete("prefect-kv-test") AttributeError: type object 'JSON' has no attribute 'delete'
m
Hey @Siva Balusu You should be able to do this via the API client with the delete_block_document call https://docs.prefect.io/api-ref/prefect/client/orion/?h=delete_block_document#prefect.client.orion.OrionClient.delete_block_document
s
@Mason Menges Thanks for the info, I tried using the name of the block but looks like i need to get UUID. How can i get uuid via python client? \'https://api.prefect.cloud/api/accounts/b0444076-1f89-4c82-98aa-9f5969646cac/workspaces/5b1090b5-2cd4-40bd-b963-0a2f82d4c451/block_documents/prefect-kv-runtime-config-1672974191\'\nResponse: {\'detail\': \'Not Found\'}