Removing a publication (removepub) v7
The removepub
command removes one or more publications.
Synopsis
-removepub pubname_1 [ pubname_2 ] ... –repsvrfile pubsvrfile -repgrouptype { m | s } [ -force ]
See Removing a publication for more information.
Parameters
pubname_n
The name of a publication to remove.
pubsvrfile
The file containing the publication server login information.
-repgrouptype
Specify s
if this command applies to a single-master replication system. Specify m
if this command applies to a multi-master replication system.
-force
Removes the publication even when one or more subscriptions are defined against the publication.
Examples
This example removes a publication named dept_emp
from a single-master replication system.
$ java -jar edb-repcli.jar -removepub dept_emp \ > -repsvrfile ~/pubsvrfile.prop -repgrouptype s Removing publication... Publication dept_emp unpublished successfully.
This example removes a publication named pub2
by using the -force
option.
$ java -jar edb-repcli.jar -removepub pub2 -repsvrfile pubsvr.prop -repgrouptype s -force Removing publication via force option (force option will remove the publication even when one or more subscriptions are defined against the publication)... Publication pub2 unpublished successfully.
- On this page
- Synopsis
- Parameters
- Examples