---
title: "Delete WordPress installation"
method: DELETE
path: "/api/hosting/v1/accounts/{username}/wordpress/{software}"
tags: ["WordPress: Installations"]
---

# Delete WordPress installation

`DELETE /api/hosting/v1/accounts/{username}/wordpress/{software}`

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

## Path parameters

- `username` string, required
- `software` string, required

## Request body

- WordPressV1InstallationsDeleteInstallationRequest
  - `delete_files` boolean — Delete installation files from disk.
  - `delete_database` boolean — Delete the installation database.

## Response `200`

Success empty response

- CommonSuccessEmptyResource
  - `message` string

## Other responses

- `401` — Unauthenticated response
- `422` — Validation error response
- `500` — Error response

---

[API](https://skmtc.dev/hostinger/apis/hostinger-api.md) · [All operations](https://skmtc.dev/hostinger/apis/hostinger-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hostinger/hostinger-api/revisions/53ccee45e5eb/schema)
