Delete A Group
Deprecated: The Ionic Cordova SDK is deprecated. For new Ionic/Cordova applications, please use the JavaScript SDK which provides full compatibility with Ionic applications.
Delete a Group
To delete a group you need to use the deleteGroup() method. The user must be an Admin of the group they are trying to delete.
var GUID = "GUID";
CometChat.deleteGroup(GUID).then(
response => {
console.log("Groups deleted successfully:", response);
}, error => {
console.log("Group delete failed with exception:", error);
}
);
The deleteGroup() method takes the following parameters:
| Parameter | Description |
|---|---|
GUID |
The GUID of the group you would like to delete |