Skip to main content

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

Comments

3 comments

  • 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.

    --remove
    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:

    https://docs.cpanel.net/knowledge-base/cpanel-developed-plugins/wp-toolkit-command-line-interface/

    0
  • 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.

    0
  • 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.

    0

Please sign in to leave a comment.