I’m trying to delete a block from cli using `prefe...
# ask-community
g
I’m trying to delete a block from cli using
prefect block delete --id <some_id>
but I get
Deployment '<some_id>' not found!
is it a bug?
āœ… 1
d
What type of block is it?
g
json
it worked using
curl -X DELETE <http://127.0.0.1:4200/api/block_documents/><some_id>
but it is quite odd: this api does not work with UUID.hex (as /flows), it needs the id with dashes
d
Block docs dont have UUID.
g
a block document inherits this class
d
Yes. Seems like the ID in the database is hex as well
but with dashes yes
g
flows instead have without dashes in db?
d
SHouyld have dashes let me check
is the same format
hex with dashes
šŸ™Œ 1
šŸ™ 1
g
šŸ‘ thanks