Reference documentation and code samples for the Google Apps Chat V1 Client class DeletionType.
Who deleted the message and how it was deleted. More values may be added in
the future. See Edit or delete a message in Google
Chat for details on when
messages can be deleted.
Protobuf type google.chat.v1.DeletionMetadata.DeletionType
Namespace
Google \ Apps \ Chat \ V1 \ DeletionMetadata
Methods
static::name
Parameter
Name
Description
value
mixed
static::value
Parameter
Name
Description
name
mixed
Constants
DELETION_TYPE_UNSPECIFIED
Value: 0
This value is unused.
Generated from protobuf enum DELETION_TYPE_UNSPECIFIED = 0;
CREATOR
Value: 1
User deleted their own message.
Generated from protobuf enum CREATOR = 1;
SPACE_OWNER
Value: 2
A space manager deleted the message.
Generated from protobuf enum SPACE_OWNER = 2;
ADMIN
Value: 3
A Google Workspace administrator deleted the message. Administrators can
delete any message in the space, including messages sent by any space
member or Chat app.
Generated from protobuf enum ADMIN = 3;
APP_MESSAGE_EXPIRY
Value: 4
A Chat app deleted its own message when it expired.
Generated from protobuf enum APP_MESSAGE_EXPIRY = 4;
CREATOR_VIA_APP
Value: 5
A Chat app deleted the message on behalf of the creator (using user
authentication).
Generated from protobuf enum CREATOR_VIA_APP = 5;
SPACE_OWNER_VIA_APP
Value: 6
A Chat app deleted the message on behalf of a space manager (using user
authentication).
Generated from protobuf enum SPACE_OWNER_VIA_APP = 6;
SPACE_MEMBER
Value: 7
A member of the space deleted the message. Users can delete messages sent
by apps.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Apps Chat V1 Client - Class DeletionType (0.12.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.12.0 (latest)](/php/docs/reference/apps-chat/latest/Chat.V1.DeletionMetadata.DeletionType)\n- [0.11.2](/php/docs/reference/apps-chat/0.11.2/Chat.V1.DeletionMetadata.DeletionType)\n- [0.10.0](/php/docs/reference/apps-chat/0.10.0/Chat.V1.DeletionMetadata.DeletionType)\n- [0.9.0](/php/docs/reference/apps-chat/0.9.0/Chat.V1.DeletionMetadata.DeletionType)\n- [0.8.1](/php/docs/reference/apps-chat/0.8.1/Chat.V1.DeletionMetadata.DeletionType)\n- [0.7.2](/php/docs/reference/apps-chat/0.7.2/Chat.V1.DeletionMetadata.DeletionType)\n- [0.6.1](/php/docs/reference/apps-chat/0.6.1/Chat.V1.DeletionMetadata.DeletionType)\n- [0.5.0](/php/docs/reference/apps-chat/0.5.0/Chat.V1.DeletionMetadata.DeletionType)\n- [0.4.0](/php/docs/reference/apps-chat/0.4.0/Chat.V1.DeletionMetadata.DeletionType)\n- [0.3.0](/php/docs/reference/apps-chat/0.3.0/Chat.V1.DeletionMetadata.DeletionType)\n- [0.2.0](/php/docs/reference/apps-chat/0.2.0/Chat.V1.DeletionMetadata.DeletionType)\n- [0.1.4](/php/docs/reference/apps-chat/0.1.4/Chat.V1.DeletionMetadata.DeletionType) \nReference documentation and code samples for the Google Apps Chat V1 Client class DeletionType.\n\nWho deleted the message and how it was deleted. More values may be added in\nthe future. See [Edit or delete a message in Google\nChat](https://support.google.com/chat/answer/7653281) for details on when\nmessages can be deleted.\n\nProtobuf type `google.chat.v1.DeletionMetadata.DeletionType`\n\nNamespace\n---------\n\nGoogle \\\\ Apps \\\\ Chat \\\\ V1 \\\\ DeletionMetadata\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### DELETION_TYPE_UNSPECIFIED\n\n Value: 0\n\nThis value is unused.\n\nGenerated from protobuf enum `DELETION_TYPE_UNSPECIFIED = 0;`\n\n### CREATOR\n\n Value: 1\n\nUser deleted their own message.\n\nGenerated from protobuf enum `CREATOR = 1;`\n\n### SPACE_OWNER\n\n Value: 2\n\nA space manager deleted the message.\n\nGenerated from protobuf enum `SPACE_OWNER = 2;`\n\n### ADMIN\n\n Value: 3\n\nA Google Workspace administrator deleted the message. Administrators can\ndelete any message in the space, including messages sent by any space\nmember or Chat app.\n\nGenerated from protobuf enum `ADMIN = 3;`\n\n### APP_MESSAGE_EXPIRY\n\n Value: 4\n\nA Chat app deleted its own message when it expired.\n\nGenerated from protobuf enum `APP_MESSAGE_EXPIRY = 4;`\n\n### CREATOR_VIA_APP\n\n Value: 5\n\nA Chat app deleted the message on behalf of the creator (using user\nauthentication).\n\nGenerated from protobuf enum `CREATOR_VIA_APP = 5;`\n\n### SPACE_OWNER_VIA_APP\n\n Value: 6\n\nA Chat app deleted the message on behalf of a space manager (using user\nauthentication).\n\nGenerated from protobuf enum `SPACE_OWNER_VIA_APP = 6;`\n\n### SPACE_MEMBER\n\n Value: 7\n\nA member of the space deleted the message. Users can delete messages sent\nby apps.\n\nGenerated from protobuf enum `SPACE_MEMBER = 7;`"]]