DROP_PUBLICATION(7)
๐ 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
- alpine 3.23: postgresql18-doc 18.6-r0 ยท PostgreSQL
- alpine 3.24: postgresql18-doc 18.6-r0 ยท PostgreSQL
- arch rolling: postgresql 18.6-4 ยท PostgreSQL
- fedora 43: postgresql 18.6-1.fc43 ยท PostgreSQL
- fedora 43: postgresql 18.6-1.fc43 ยท PostgreSQL
- fedora 44: postgresql 18.6-1.fc44 ยท PostgreSQL
- fedora 44: postgresql 18.6-1.fc44 ยท PostgreSQL
- nixos 26.05: postgresql 18.6
- ubuntu resolute: postgresql-client-18 18.6-0ubuntu0.26.04.1 ยท PostgreSQL
- ubuntu stonking: postgresql-client-18 18.6-3build2 ยท PostgreSQL
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms