Skip to main content

Seeking Assistance with the Correct API Endpoint to Remove a WordPress Installation in WP-TOOLKIT



  • cPRex Jurassic Moderator

    Hey there!  While it isn't in any of the documentation yet, there is a "--remove" command available with the wp-toolkit command line option.

    Removes WordPress site.

    Brief usage:

    wp-toolkit --remove 
        -instance-id INSTANCE_ID|-domain-name DOMAIN_NAME -path PATH
        [-leave-db] [-leave-db-user] [-leave-action-logs] 
        [-format raw|json]

    I've created an internal case to get that added to our documentation here:

  • Felipe Antunes

    Thank you for your prompt response, and I apologize for not being clear enough. I need this to be used with PHP, in an endpoint similar to .....:2087/cgi/wpt/index.php/?action=remove

    So far, the project has been done through curl, and I wouldn't want to switch to command line now.

    I managed to get to this endpoint cgi/wpt/index.php/v1/remover/confirmation?installationsIds%5B%5D=X

    which passes the "status" about the removal. But what I really need is to delete.

    I appreciate any guidance in advance.

  • cPRex Jurassic Moderator

    Unfortunately I don't have any other automated tools as there is no direct API word WP Toolkit, only the wp-toolkit command line option.


Please sign in to leave a comment.