Delete WordPress installation
Delete the specified WordPress installation, with optional file and database removal.
Delete the specified WordPress installation, with optional file and database removal. This removes all associated components including plugins, themes, staging websites and any other related data.
Provide the WordPress installation (software) identifier in the path. It can
be obtained from GET /api/hosting/v1/wordpress/installations (the id field).
Authorizations
AuthorizationstringRequired
API Token authentication
Path parameters
usernamestringRequiredExample:
u123456789softwarestringRequiredExample:
WordPress installation (software) identifier
1232456789Pattern: ^[0-9]+$Body
delete_filesbooleanOptionalDefault:
Delete installation files from disk.
falseExample: falsedelete_databasebooleanOptionalDefault:
Delete the installation database.
falseExample: falseResponses
200
Success empty response
application/json
messagestringOptionalExample:
Request accepted401
Unauthenticated response
application/json
422
Validation error response
application/json
500
Error response
application/json
delete/api/hosting/v1/accounts/{username}/wordpress/{software}
DELETE /api/hosting/v1/accounts/{username}/wordpress/{software} HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 46
{
"delete_files": false,
"delete_database": false
}{
"message": "Request accepted"
}Last updated
Was this helpful?