Seeking Assistance with the Correct API Endpoint to Remove a WordPress Installation in WP-TOOLKIT
Hello everyone,
I'm currently working with the WP-TOOLKIT API and need some help. I've been trying to find the correct API endpoint to remove a WordPress installation but have hit a roadblock.
So far, I've explored the documentation but haven't been able to locate the precise endpoint that would allow me to delete an installation. I've tried a few options that seemed logical but to no avail.
Could anyone with experience in working with the WP-TOOLKIT API guide me to the correct endpoint? Any examples or a point in the right direction would be greatly appreciated!
Thank you in advance for your assistance!
-
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 -
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 -
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.
Comments
3 comments