Deleting Databases, describes how to delete a database in a Global project, but the procedure is different if the database owns extracts. The conditions required to de-allocate and delete a database are quite complicated:
Thus to delete a database that owns extracts (and may own working extracts) may involve doing a number of CHANGE PRIMARY commands to get rid of any working extracts at satellites where the database is secondary.