Delete groups

Delete groups along with their meeting events, positions, attendance and pending requests. Provide ids, or explicitly set include to false to delete every group matching the filters (and every group outright when no filters are given); an empty body is rejected.

Required permission: Full Write Groups

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string

Return groups whose name contains the given text.

string

Comma-delimited list of group type ids. Values come from /api/property_values/group_types/values.

boolean

Whether to return listed or unlisted groups.

boolean

Whether the group is connected to a Mailchimp list.

int32
≥ 1

The id of a person. Returns groups the person leads.

string

Return groups led by someone whose name contains the given text.

string

Comma-delimited list of campus ids. Use -1 to include groups without a campus. Values come from /api/locations.

boolean

Whether to return active or inactive groups.

string

Comma-delimited list of language ids. Use -1 to include groups without a language. Values come from /api/property_values/languages/values.

string

Comma-delimited list of category ids. Use -1 to include groups without a category. Values come from the group type's category list: append _categories to the group type code (e.g. /api/property_values/group_type_class_categories/values).

string

Comma-delimited list of weekday names. Returns groups that meet on any of the given weekdays.

string

Return groups that meet at a street address containing the given text.

string

Return groups that meet at an address whose city contains the given text.

string

Return groups that meet in the given state. Use the full state name, not an abbreviation.

string

Return groups that meet at an address with the given postal code.

string

Return groups that meet in the given country. Use the full country name, not an abbreviation.

boolean

Whether childcare is provided in the group.

int32

The id of a parent group. Returns its sub-groups. Use -1 to return only groups without a parent.

string

Return groups whose parent group's name contains the given text.

string

Comma-delimited list of membership type ids: 1 = auto enroll, 2 = approval required.

boolean

Whether the group is published to the public group finder.

boolean
boolean

Whether registration is required to join the group.

int32

The id of a sign-up form. Returns groups using that form; use -1 for groups with no sign-up form. Values come from /api/forms.

double

Return groups with at least this many members.

double

Return groups with at most this many members.

string

Return groups created by a user whose name contains the given text.

string

Full-text search text. Matching groups are returned ranked by relevance.

Body Params

The selection criteria

ids
array of doubles | null

The ids the operation applies to: an include list by default, or an exclude list when include is false. For deletes, required unless include is false.

ids
boolean | null

Whether ids is an include list (true, default) or an exclude list (false). Setting include to false with no ids applies the operation to every record matching the query filters.

action
object | null

What happens to sub-groups of the deleted groups, by id: 1 = sub-groups become top-level groups, 2 = sub-groups are reassigned to the deleted group's parent, 3 = sub-groups are deleted too. When omitted, a group that has sub-groups cannot be deleted.

Responses
200

OK

401

Authentication is required, or the Ocs-Api-Key header is missing or invalid.

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here!