Removing unused custom types

I have deleted a Custom Type in the UI that we don't need, but it's still coming back as existing (I see it in a simple call to https://{repo}.prismic.io/api/v2). How do I completely remove it?

Hello,

Thanks for reaching out to us.

Once you have made any changes in your repository, your repository master ref changes. You need to query with a new master ref in the API browser. You can get the latest master ref by clicking on the refresh button.
Are you querying the API with the new Master ref after deleting the custom type and related documents?

Thanks,
Priyanka

I wasn't using any master ref. Going to try today, it looks like it's now gone. So I'm guessing it takes a while for everything to cache out?

Hello @prismic16

I am glad that it worked for you.

You query the API with the master ref, and it always returns up-to-date data with each request. The Prismic API is fast. Fast. The API is so fast because it uses a system of refs and caching You will find more details in Intro to the Prismic API guide.

Let me know if you have any further questions.

Thanks,
Priyanka