How to delete block models?

I have a bunch of unused modular content blocks that I want to get rid of. Is there a way to do this in the UI, or should this only be done via migration?

hey @operations you can delete the blocks from the UI.

To do that you should add the block to a modular content, then remove it. When removing it, if it’s not used elsewhere, it will provide the option of deleting the block completely.

Otherwise you are able to delete it using our API: https://www.datocms.com/docs/content-management-api/resources/item-type/destroy

Got it, thanks for the tip!

1 Like