rm / del
| Function | Moves one or more pages, or one space, to the Confluence trash. del is an alias for rm. |
| Options | -y, --yes — required to delete. -n, --dry-run — preview; -n wins over -y. |
| Limitations | At most 100 targets (named paths, globs, or piped paths). Trash only — no purge. A space can only be deleted alone (rm -y /SpaceName), never by glob or pipe. Folders are refused. Confluence may take some time to finish deleting a space. |
Pass several paths, use * / ? in the last segment of a path on the command line, or pipe page paths from find. With a pipe, only flags go on the command line. Zero glob matches is an error.
Deleting a parent page does not delete its children — Confluence moves them up to the next parent. To trash a whole tree, preview with find PATH | rm -n, then confirm with find PATH | rm -y. For old subtrees, find … -mtime +365 -prune | rm -n is a good preview. If you want stale pages out of the way but restorable from Confluence’s archive instead of the trash, see archive.
Flags may appear anywhere among the arguments.
Examples
Section titled “Examples”$ rm -y ./OldPage$ rm -n ./pageA ./pageB$ rm -y ./pageA ./pageB$ rm -y Draft*$ find ./folder | rm -n$ find ./MySpace/Projects -mtime +365 -prune | rm -n$ rm --yes ./OldSpace$ del -y ./OldPage