DROP_PUBLICATION(7pg18)
๐ DROP_PUBLICATION ๐
okay bestie, gather round, because we're talking about DROP PUBLICATION โ the PostgreSQL command that โจyeetsโจ a publication right out of your database. it's giving "cleanup era." no cap.
โจ SYNOPSIS โจ
DROP PUBLICATION [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
๐ DESCRIPTION ๐
DROP PUBLICATION removes an existing publication from the database. gone. deleted. not invited to the group chat anymore. ๐
heads up bestie: a publication can only be dropped by its owner or a superuser. so if you're neither of thoseโฆ it's not your moment, sorry. ๐ญ
๐ธ PARAMETERS ๐ธ
IF EXISTSโ do not throw an error if the publication doesn't exist. instead, a notice gets issued in this case. so chill, it's fine, no dramatic exit needed. ๐ซถnameโ the name of an existing publication. you know, the one you're about to send to the shadow realm. ๐CASCADERESTRICTโ okay so here's the tea: these key words do not have any effect, since there are no dependencies on publications. like, zero. they're just here vibing. they exist for the syntax to look cute and consistent. periodt. ๐
๐ฆ EXAMPLES ๐ฆ
drop a publication:
DROP PUBLICATION mypublication;
that's it. that's the whole thing. she's gone. ๐ง
โญ COMPATIBILITY โญ
DROP PUBLICATION is a PostgreSQL extension. it's our thing, iykyk. ๐
๐ SEE ALSO ๐
CREATE PUBLICATION(CREATE_PUBLICATION(7))ALTER PUBLICATION(ALTER_PUBLICATION(7))
and that's the whole manual page, bestie โ you ate that. ๐ this lil page came to you from PostgreSQL 18.6 documentation, dated 2026. slay, go drop some publications (responsibly). ๐ โจ
๐ฆ where this page comes from
- opensuse-leap 16.0: postgresql18 18.6-160000.1.1 ยท PostgreSQL
- opensuse-leap 16.0: postgresql18 18.6-160000.1.1 ยท PostgreSQL
- opensuse-leap 16.0: postgresql18 18.6-160000.1.1 ยท PostgreSQL
- opensuse-leap 16.0: postgresql18 18.6-160000.1.1 ยท PostgreSQL
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms