diff --git a/Pleroma/Pleroma.cs b/Pleroma/Pleroma.cs index 59d60a6..deee4cf 100644 --- a/Pleroma/Pleroma.cs +++ b/Pleroma/Pleroma.cs @@ -232,5 +232,20 @@ public class Pleroma req.Fields.Accept = [JsonMIMEType]; return RequestJSONRetry(req); } + + /// + /// Deletes a status. + /// + public Task Delete(Status status) + => Delete(status.ID); + + /// + /// Deletes a status by ID. + /// + public Task Delete(string status_id) + { + HttpRequest req = new HttpRequest(HttpMethod.DELETE, $"/api/v1/statuses/{status_id}"); + req.Fields.Accept = [JsonMIMEType]; + return RequestJSONRetry(req); } }