With a Samsung account, you need one of your locations to be the “default location”. If you try to delete a location that is the default, you will receive a 500 error. Most of the time, you can switch which location is your default though.
This is under the location settings when you click “Edit” for a location in the IDE: