https://prefect.io logo
Title
g

Giacomo Chiarella

05/25/2023, 12:31 PM
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

Deceivious

05/25/2023, 12:36 PM
What type of block is it?
g

Giacomo Chiarella

05/25/2023, 12:37 PM
json
image.png
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

Deceivious

05/25/2023, 1:13 PM
Block docs dont have UUID.
image.png
g

Giacomo Chiarella

05/25/2023, 1:15 PM
a block document inherits this class
d

Deceivious

05/25/2023, 1:17 PM
Yes. Seems like the ID in the database is hex as well
but with dashes yes
g

Giacomo Chiarella

05/25/2023, 1:17 PM
flows instead have without dashes in db?
d

Deceivious

05/25/2023, 1:17 PM
SHouyld have dashes let me check
is the same format
hex with dashes
šŸ™Œ 1
:thank-you: 1
g

Giacomo Chiarella

05/25/2023, 1:18 PM
šŸ‘ thanks