How to detach a WordPress setup from the WP toolkit via WHM and command line

April 13, 2023 / WordPress

If you want to remove or reconfigure a WordPress installation, it may be necessary to detach the WordPress setup from the WHM. Whether you’re working through the WHM interface or using the command line, knowing how to properly detach WordPress setups will keep your server organised and any changes implemented smoothly.

This guide explains the steps of how to detach the WordPress installation using both the WHM interface and the command line, so you can effectively manage your WordPress sites and maintain a clean server environment.

Detach WordPress setup via WHM:

  1. Log in to WHM.
  2. Select the “Plugins” option from the side menu and click on the “WP Toolkit” sub-option.
    WP Toolkit
  3. You will enter the settings page.
  4. Choose the domain, and then select the “Detach” tab from the list of tabs at the top.
    Select 'Detach' tab
  5. It will prompt you for confirmation. Click “Detach” to proceed.
    Detaching WordPress Websites

Detach WordPress setup via command line:

  1. Execute the following command:
    /usr/local/bin/wp-toolkit –detach -instance-id $instance_id
  2. The ID displayed by the command
    /usr/local/bin/wp-toolkit –list is “$instance_id.”

Important note- Every WordPress installation made with the help of WP Toolkit is permanently connected to it. You can only entirely remove them from WP Toolkit; you cannot separate them from WP Toolkit.

Learn how to completely remove a WordPress installation from Softaculous in our guide How to Remove WordPress Installation from cPanel Softaculous.

We hope you enjoyed reading this. Please frequently check our WHUK’s KB section for the most recent updates.

Spread the love