Hides a group from the Groups List or cancels a group request.
Notes:
function deleteGroup(groupId: string): Promise<DeleteGroupResponse>;
ID of the group to delete.
import { groups } from "wix-groups.v2";
async function deleteGroup(groupId) {
try {
const result = await groups.deleteGroup(groupId);
return result;
} catch (error) {
console.error(error);
// Handle the error
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.