Ensure the database object is not replicated before attempting to drop it. For example:
If the error occurs in the publication database, drop the article from the publication before dropping the object. For more information, see Adding Articles to and Dropping Articles from Existing Publications.
If the error occurs in the subscription database, drop the subscription before dropping the object. For more information, see Subscribing to Publications. For subscriptions to transactional publications, it is possible to drop the subscription to an individual article rather than the entire publication. For more information, see sp_dropsubscription (Transact-SQL).
If this error occurs in a database that is not replicated, execute sp_removedbreplication (Transact-SQL) to ensure objects in the database are not marked as replicated.