Delete a group
DELETE
/Groups/{id}
const url = 'https://example.com/scim/v2/Groups/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://example.com/scim/v2/Groups/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>'Removes the group and answers 204; its members leave it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
The group’s id, as GET /Groups lists it.
Responses
Section titled “Responses”The group was deleted.
No usable SCIM bearer: missing, not fn_scim_…, unknown, revoked,
expired or of a disabled provider, with WWW-Authenticate: Bearer
and no scimType (RFC 7644 defines none for it). A refused bearer counts against the
address’s throttle; an address over it is answered 429.
Media typeapplication/scim+json
object
schemas
required
Array<string>
status
required
string
scimType
string
detail
string
Example generated
{ "schemas": [ "example" ], "status": "example", "scimType": "example", "detail": "example"}Headers
Section titled “Headers”WWW-Authenticate
string
No member or group of the token’s provider has this id.
Media typeapplication/scim+json
object
schemas
required
Array<string>
status
required
string
scimType
string
detail
string
Example generated
{ "schemas": [ "example" ], "status": "example", "scimType": "example", "detail": "example"}