Actually, I'm trying to refactor one slice which is present for a long time and I'm not exactly sure what are those pages where this particular slice is being used.
So what I'm trying to do is
List down all the pages where this particular slice is present.
Adjust the slice type definition. ( I mean refractor )
Create a change-set.
Schedule to publish the same.
I'm not sure I'm 100% correct in my approach and that is why I'm open to providing more info so that I can learn better approaches to doing the same.
Hope this makes sense and looking for your suggestions.
I asked a similar question a while back. I was simply looking to find every document using a particular slice (without refactoring) but someone on the Prismic team pointed us in the right direction with a sample script: