What steps have you taken to resolve this issue already?
Contacted Prismic's customer (account) support to no avail.
Errors
400 Bad Request when trying to delete locale from Prismic's UI.
Your Role
Software engineer.
Steps to reproduce
Add a new locale to a repository in Prismic, which is not of the Slice Machine (we're not using Nextjs and the other supported frameworks). Try to delete any created locale. See error "cannot delete ...".
I saw your ticket and responded to it, but I'll post a reply for anyone encountering this issue as well so it might help other users.
To delete a locale, every document associated with it needs to be deleted. This includes documents in Planned releases, in every Team Space, in Archives, and in the Migration Release tab. If you've deleted every document there too, and you still can't delete the locale, you've hit a bug we're working on fixing as we speak that prevents users from deleting empty locales. We hope to see it resolved soon, so it doesn't remain an issue much longer.