Delete slice saved in "Slices Library"

Hello!

I'm new to Prismic, and did a bunch of playing around, and now I have some "garbage" slices in my "Slices Library".

How do I delete these?

Cheers,
-Justin

2 posts were merged into an existing topic: How to delete custom slices using CLI (SliceMachine)?

Hi Justin,

I presume you're talking about Slices built with Slice Machine, am I right?

To remove Slices all you need to do is delete the Slice folder from within your project files and then it will be no longer available to choose from the Prismic Builder. You will then just need to Push your Custom Type to Prismic again.

We are working to integrate this functionality into the local builder as soon as we can.

Thanks.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Can you describe what you mean by Slice Folder? I don't see any slice folder.... I need to delete some old slices that are no longer used but still exist in my Slice Library. When I retrieve my types from the custom types API it doesn't exist there, but still exists in my Slice Library tab which has no options for deleting...

Hey @tannerjuby1, if you're using Slice Machine, you should see a /slices folder at the root level of your project.

I am not using slice machine

Thanks for the clarification, we made that assumption because the original thread was talking about Slice Machine. Can you elaborate on your issue? what do you need to modify in your project or repository?

I had created some Slices and added them to my Slice Library via the Prismic Dashboard. Some of these slices are not longer necessary and I'd like to delete them from my Slice Library but this simple functionality does not exist.

Hi Tanner,

Can you send is a screenshot of exactly where you mean when you say Slice Library?

Thanks.

Sure thing. I do realize now that this thread has the "Slice Machine" topic, so forgive me if I'm in the wrong location and should open a different thread, this question just seemed appropriate.

Here is a screen shot from the Prismic Dashboard where you can save a slice to your Slice Library and another of your Slice Library when adding a slice.


Unfortunately, I have found no way to remove a slice from your Slice Library once its been added. You can delete the slice from the custom types you've added it to, but not from the Library itself.

Thanks for sharing this information. We've opened a ticket in the backlog for this issue. Whenever we get an update we'll update this same thread.

Thanks

I'm having the exact same issue. You can delete things from the "Slice Machine" but I can't see a way to remove things from slices made within a model (what seems to be the OLD slice system).

Hello @dhayes

Thanks for reaching out to us.

We have already created this issue in our issue tracker, and the Slice Machine team will be working on this issue. But I don't have any ETA for the moment. You can use Custom Type API to delete slices from the Prismic builder.

Thanks,
Priyanka