Plesk

Unable to remove a domain: Permission denied to remove domain ID

Symptoms

Unable to remove a domain by marking the checkbox and pressing the Remove button via Plesk > Domains:

due to the following error:

Error: Permission denied to remove domain ID

Cause

Database inconsistency or workaround for bug #PPPM-7124.

Resolution

Remove the domain using one of the following ways:

via Graphical User Interface (GUI):

  1. Log in to Plesk.

  2. Go to Domains > example.com.

  3. Click the Remove Website button:

    Note: If no such button is presented then this domain is the main domain of the corresponding subscription, and it can be removed only with the subscription together.

    Warning: subscription removing will delete all domains assigned to this subscription. If other domains should remain untouched, create a temporary subscription example1.com, move the domains to it, and rename it to example.comĀ after removing the domain in question.

  4. Go to Subscriptions > example.com > Websites & Domains and press the Remove Subscription button:

via Command Line Interface (CLI)

  1. Connect to the server via SSH.

  2. Execute the following command to remove the domain example.com:

    Note: change example.com the command below to the required domain name.

    # plesk bin domain --remove example.com