Deletes a thread's space. Messages members wrote in it stay in their own repos and become unreadable to everyone but their authors, the same way deleting a channel works. Messages that were moved into the thread go with it.
Input
Encoding
application/jsonthread
stringspace-ref
Required
The thread to delete.
Output
Encoding
application/jsonErrors
AuthRequired
The request has no valid service auth. Forbidden
The requesting user lacks the thread.manage permission. ThreadNotFound
No thread matches the given space reference. CredentialsUnavailable
The AppView cannot act as the community because its stored credentials are missing or unusable. PdsUnavailable
The community's PDS is unreachable or the AppView has no administrative access to it. UpstreamFailure
The community's PDS failed while deleting the thread's space. Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"description": "Deletes a thread's space. Messages members wrote in it stay in their own repos and become unreadable to everyone but their authors, the same way deleting a channel works. Messages that were moved into the thread go with it.",
"errors": [
{
"description": "The request has no valid service auth.",
"name": "AuthRequired"
},
{
"description": "The requesting user lacks the thread.manage permission.",
"name": "Forbidden"
},
{
"description": "No thread matches the given space reference.",
"name": "ThreadNotFound"
},
{
"description": "The AppView cannot act as the community because its stored credentials are missing or unusable.",
"name": "CredentialsUnavailable"
},
{
"description": "The community's PDS is unreachable or the AppView has no administrative access to it.",
"name": "PdsUnavailable"
},
{
"description": "The community's PDS failed while deleting the thread's space.",
"name": "UpstreamFailure"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"thread": {
"description": "The thread to delete.",
"format": "space-ref",
"type": "string"
}
},
"required": [
"thread"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {},
"type": "object"
}
},
"type": "procedure"
}