turn off (synchronized) database
Your error message is useful to know that the database you are trying to remove is not in mirroring. It is part of Availablity group.

You can use below command to remove the database from Availablity group :

ALTER AVAILABILITY GROUP YourAG REMOVE DATABASE DBthatYouWantToRemove;