Delete repository

Delete a sub-repository from a WordPress site.


DELETE/api/servers/{server}/sites/{id}/wordpress/repositories/{repository}

Delete repository

Removes the repository files from the target directory on the server and deletes the repository record. The rest of the WordPress installation is not affected. Not instant - the deletion is processed in the background.

Request

DELETE
/api/servers/{server}/sites/{id}/wordpress/repositories/{repository}
curl -X DELETE "https://ploi.io/api/servers/{server}/sites/{id}/wordpress/repositories/{repository}" \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json"

Response

{
  "status": "ok",
  "message": "Repository is being removed."
}