Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export async function deleteGroupWithNameAsync(groupName: string) {
try {
const group = await getGroupWithNameAsync(groupName);
if (group) {
Contacts.removeGroupAsync(group.id!);
}
} catch ({ message }) {
// tslint:disable-next-line no-console
console.error(message);
}
}