Skip to main content
Version: 1.0.16

DROP PUBLICATION

DROP PUBLICATION — Remove a publication

Synopsis

DROP PUBLICATION [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]

Description

DROP PUBLICATION removes an existing publication from the database.

A publication can only be dropped by its owner or a superuser.

Parameters

IF EXISTS

Do not throw an error if the publication does not exist. A notice is issued in this case.

name

The name of an existing publication.

CASCADE

RESTRICT

These keywords have no effect, since publications have no dependencies.

Examples

# Drop a publication:

DROP PUBLICATION mypublication;

See Also

CREATE PUBLICATION, ALTER PUBLICATION