Summary: Move/copy/delete wiki groups
Version: 20230420
Prerequisites: implemented on pmwiki-2.3.22, but should also work on older versions
Status: In active use
Maintainer: Harco Kuppens
License: GNU General Public License as published bythe Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Users: (view? / edit)

Questions answered by this recipe

How to move, copy or delete an entire PmWiki group.


MoveCopyDelGroup provides a simple form and simple actions to copy, move, or delete an entire PmWiki group.

Copy duplicates the group, Move renames the group, and Delete deletes the entire group.

Because these are big operations in the wiki we require admin permissions to execute them.

To use, once installed, add ?action=groupcopy or ?action=groupmove or ?action=groupdelete to a page's location (or use a PageActions link, if you've defined one) to get a simple form, fill in the target name and press a button ("Copy" or "Move" or '"Delete"). MoveCopyDelGroup will verify that the source group exists and that the target group doesn't already exist, and that you have the required admin permissions, then moves or copies, or deletes the group. All uploads and the pages with their history are preserved. The move/copy will not be recorded in the history of the pages.

Assumes uploads are grouped per PmWiki group into one directory.



  • Download movecopydelgroup.phpΔ to your cookbook directory
  • Add the following to your config file:
    if (($action=='groupcopy') || ($action=='groupmove') || ($action=='groupdelete')) include_once("$FarmD/cookbook/movecopydelgroup.php");
  • Optionally, add something like the following to your Site.PageActions page:
    (:if auth admin:)
    * %item rel=nofollow class=groupmove% [[{*$FullName}?action=groupmove | $[GroupMove] ]]
    * %item rel=nofollow class=groupcopy% [[{*$FullName}?action=groupcopy| $[GroupCopy] ]]
    * %item rel=nofollow class=groupdelete% [[{*$FullName}?action=groupdelete | $[GroupDelete] ]]


Assumes uploads are grouped per pmwiki group into one directory.

Release notes

See also

User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.