Channels
pacc-may-31-2023
prefect-ai
pacc-clearcover-june-12-2023
marvin-in-the-wild
data-ecosystem
geo-israel
pacc-june-14-2023
geo-japan
prefect-cloud
ppcc-may-16-2023
prefect-azure
prefect-docker
prefect-recipes
gratitude
geo-nyc
geo-bay-area
geo-boston
geo-london
geo-dc
geo-chicago
geo-berlin
geo-texas
geo-seattle
geo-colorado
prefect-community
data-tricks-and-tips
prefect-aws
prefect-gcp
introductions
find-a-prefect-job
prefect-dbt
random
events
ask-marvin
show-us-what-you-got
prefect-getting-started
prefect-integrations
prefect-contributors
best-practices-coordination-plane
announcements
prefect-server
prefect-ui
prefect-kubernetes
Powered by
Title
s
Siva Balusu
01/06/2023, 3:30 AM
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
Mason Menges
01/06/2023, 7:02 PM
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
Siva Balusu
01/06/2023, 7:45 PM
@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\'}
3 Views
#prefect-community
Join Slack