This function is used to remove from current replication set an existing publication. The replication messages for all existing items will be stopped, so the last replication message will instruct the subscribers that this publication is dropped. On subscriber side depending of the copy mode of items they can be removed or not, but the description entry for that publication will be removed explicitly. Any existing grants to the publication being dropped will be revoked.
The following statement will remove the publication 'demo-publication' account from current replication set.
SQL> DB.DBA.REPL_UNPUBLISH ('demo-publication');