How to delete and rename namespaces in DokuWiki

DokuWiki sites are constantly changing due to the contributions of the website patrons. When topics get too big, change in scope, or become obsolete, it becomes necessary to rename or delete the namespaces from DokuWiki. This article will go through the steps in renaming and deleting namespaces form DokuWiki.

Renaming a namespace in DokuWiki

  1. Login into your cPanel.
  2. Go to the File Manager, select your DokuWiki install directory and click Go.
  3. Navigate to the Sitemap DokuWiki

    Navigate to the following location in your DokuWiki site.

    /data/pages

    Find the folder for the namespace you want to rename similar to the snapshot to the right.


  4. Rename the folder for the namespace DokuWiki

    Select the folder and click rename in the File manager at the top.

    Name the folder to a different name and hit enter. (In this case we renamed the folder to “new_namespace“)


  5. Visit the site map with renamed namespace DokuWiki

    Click your sitemap link at the top right of your DokuWiki site. Now you will see the namespace renamed in your sitemap.

Deleting namespaces in DokuWiki

  1. Log into DokuWiki.
  2. Click sitemap at the top right.

    Find the namespace you want to remove. (In this case the “html5” namespace is being removed.)

  3. Visit the sitemap of yoru DokuWIki

    Select the page in the namespace. (In this case “html_5_videos”.)

  4. Click edit this page DokuWiki

    Click the pencil to the right that says “Edit this page“.

  5. Remove content from page to delete DokuWiki

    Delete all the text from the page.

    Click Save.


    Sitemap with namespace deleted DokuWiki

    Now visit the sitemap link at the top right. The namespace will be gone from the sitemap.

    Note! For the namespace to disappear completely, if there are multiple pages in one namespace, each page in the namespace will need to have its content deleted. Once all pages have no content in the namespace, the namespace will no longer appear in the sitemap.

Now that you are familiar with renaming and deleting namespaces, you can see our next article on how to redirect old pages that were removed from your DokuWiki site.

Was this article helpful? Join the conversation!