> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: deleteGroup(groupId: string) # Method package: wixGroupsV2 # Method menu location: wixGroupsV2 --> groups --> deleteGroup # Method Link: https://dev.wix.com/docs/velo/apis/wix-groups-v2/groups/delete-group.md # Method Description: Hides a group from the [Groups List](https://support.wix.com/en/article/wix-groups-about-your-groups-pages#groups-group-list) or cancels a group request. >**Notes:** > + Only group admins can delete their group. > + The group will no longer be visible in the live site or the dashboard. > + It is not possible to restore a deleted group with the Update Group method. > + It is still possible to retrieve the group with the Get Group, List Groups, and Query Groups methods. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## deleteGroup example for dashboard page code ```javascript 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 } } ``` ## deleteGroup example for exporting from backend code ```javascript import { groups } from 'wix-groups.v2'; import { webMethod, Permissions } from 'wix-web-module'; import { elevate } from 'wix-auth'; const elevatedDeleteGroup = elevate(groups.deleteGroup); export const deleteGroup = webMethod( Permissions.Anyone, async (groupId) => { try { const result = await elevatedDeleteGroup(groupId); return result; } catch (error) { console.error(error); // Handle the error } } ); ``` ---