AdminAPI: add DELETE /instances/:instance to delete all content from a remote instance

This commit is contained in:
Alex Gleason 2021-07-17 14:55:05 -05:00
commit 54dbcfe02a
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
4 changed files with 48 additions and 0 deletions

View file

@ -319,6 +319,22 @@ Note: Available `:permission_group` is currently moderator and admin. 404 is ret
}
```
## `DELETE /api/v1/pleroma/admin/instances/:instance`
### Delete all users and activities from a remote instance
Note: this will trigger a job to remove instance content in the background.
It may take some time.
- Params:
- `instance`: remote instance host
- Response:
- The `instance` name as a string
```json
"lain.com"
```
## `GET /api/v1/pleroma/admin/statuses`
### Retrives all latest statuses