Delete or remove a message
const url = 'https://api.gampeon.com/v1/communities/1/messages/1';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Community ID
Message ID
Responses
Section titled “Responses”Removed
Error codes: unauthorized
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
Example generated
{ "error": "example", "message": "example"}Error codes: token_not_allowed, missing_permission, forbidden
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
Example generated
{ "error": "example", "message": "example"}Error codes: not_found
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
Example generated
{ "error": "example", "message": "example"}