Skip to content
GAMPEONCreate
New project

Delete or remove a message

DELETE
/v1/communities/{id}/messages/{messageId}
curl --request DELETE \
--url https://api.gampeon.com/v1/communities/1/messages/1 \
--header 'Authorization: Bearer <token>'

Your own: deleted right away (a placeholder stays). Others: needs manageMessages in the channel; the author gets a notification with the optional reason (JSON body {reason}). Messages of studio or project managers can only be removed by other managers or GAMPEON. The text of removed messages is deleted after 30 days unless a report is open.

Not available with access tokens.

id
required
integer
>= 1

Community ID

messageId
required
integer
>= 1

Message ID

Removed

Error codes: unauthorized

Media typeapplication/json
object
error
required

Machine-readable error code, for example not_found or rate_limited.

string
message

Human-readable detail. Only present for some errors.

string

Example generated

{
"error": "example",
"message": "example"
}

Error codes: token_not_allowed, missing_permission, forbidden

Media typeapplication/json
object
error
required

Machine-readable error code, for example not_found or rate_limited.

string
message

Human-readable detail. Only present for some errors.

string

Example generated

{
"error": "example",
"message": "example"
}

Error codes: not_found

Media typeapplication/json
object
error
required

Machine-readable error code, for example not_found or rate_limited.

string
message

Human-readable detail. Only present for some errors.

string

Example generated

{
"error": "example",
"message": "example"
}

Report a problem with this pageOther ways to give feedback