Deleting locale doesn't remove it from the api

Deleting locale doesn't remove it from the api

Describe your question/issue in detail

I need to remove a locale in a repo that's been added for testing purposes. After removing all documents associated with the locale, i was able to delete it from the repo settings. Even though the locale does not show up in the editor anymore, it still shows up on the api

	"languages": [
		{
			"id": "de-de",
			"name": "German - Germany",
			"is_master": true
		},
		{
			"id": "en-us", // < deleted locale
			"name": "English - United States",
			"is_master": false
		}
	],

Impacted feature

Rest-API

Steps to reproduce

  1. Create a new prismic repo
  2. Add another locale to the repo
  3. Remove the said locale
  4. Make request to https://.cdn.prismic.io/api/v2
  5. The deleted locale still shows up in the "languages" object

Hi @olafyang,

Welcome to the community :slight_smile:

This is a known bug we've been dealing with - thank you for reporting it! This shouldn't have any impact on your repository, so no worries on that end, and we're working on a fix. The only impact this might have is if we erroneously upgrade your repository due to having too many locales. It'd be a shame if that ghost one pushed you over the edge, can you share your repository name with me so I can make sure we know you're dealing with this bug and you're not automatically upgraded at some point?

Thanks!

Hey, thanks for the reply and sorry for the late reply on my part.

The most locales the repo has had was 2 (english and german) so it wasn't upgraded to other plans. Upon checking today, the deleted locale is no longer showing from the api.

1 Like

Hi,

Awesome, good to hear it resolved itself. Thanks for reporting it either way, and if you ever spot or need anything else, don't hesitate :slight_smile: