DROP PUBLICATION — remove a publication
DROP PUBLICATION [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
DROP PUBLICATION removes an existing publication from the database.
A publication can only be dropped by its owner or a superuser.
IF EXISTSDo not throw an error if the publication does not exist. A notice is issued in this case.
nameThe name of an existing publication.
CASCADERESTRICT
These key words do not have any effect, since there are no dependencies on publications.
Drop a publication:
DROP PUBLICATION mypublication;
DROP PUBLICATION is a PostgreSQL extension.
© 1996–2020 The PostgreSQL Global Development Group
Licensed under the PostgreSQL License.
https://www.postgresql.org/docs/13/sql-droppublication.html