Delete custom type


I want to delete some custom types but I am really struggling. I can delete them from slicemachine on my local machine but can't get them to delete from the prismic dashboard. When I click create new the custom types show up.
I have read about using curl to do it which didn't work for me (might be doing this wrong). I also read about disabling and then being able to delete but can't find a disable button anywhere on dashboard or slicemachine.

Hi Thomas,

Welcome to the community!

Thanks for bringing this up, the team is currently working on making it easier to remove Custom Types and Slices using Slice Machine.

In the meantime, the best way is indeed as you suggested to use a curl request:

You can use postman to help you do this. Just enabled the permanent token in the Custom Types API tab of your repo.

(Alternatively, you could re-enable the legacy builder in your repo settings and delete the custom type from there.)

Let me know if you have any further questions.


1 Like