Delete a user
DELETE
/scim/v2/Users/{id}
const url = 'https://forge.example.com/scim/v2/Users/example';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://forge.example.com/scim/v2/Users/example \ --header 'Authorization: Bearer <token>'Deactivates the person, ends their sessions and takes them out of the provider’s groups; the person and their work stay. From then on SCIM does not see them; making them again with the same userName takes them back.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Responses
Section titled “Responses”Done. The answer has no body.
default
Section titled “default”A refusal or an error on the SCIM endpoints, as SCIM’s error document (RFC 7644 section 3.12).
Media typeapplication/scim+json
object
schemas
Array<string>
status
string
scimType
string
detail
string
Example generated
{ "schemas": [ "example" ], "status": "example", "scimType": "example", "detail": "example"}