> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete User

Deactivates a user from the directory by their `userId`, along with its group memberships. If the `userId` is linked to a managed Atlassian account, the account is deactivated. The user is not available for future requests until created with a new `userId`. Any future operation for the deactivated user returns the 404 (resource not found) error.

The deactivated user can be activated again via Atlassian Administration.

To deactivate the account instead, use the [Update user by ID API](https://developer.atlassian.com/cloud/admin/user-provisioning/rest/api-group-users/#api-scim-directory-directoryid-users-userid-patch). Update the `op` field to `replace` and `value` field to `active:false` within the `operations` request body.

**Note:** Executing this API call will result in the deletion of the SCIM record, and there is no method to reverse these changes except by creating a new SCIM record with [Create a user API](https://developer.atlassian.com/cloud/admin/user-provisioning/rest/api-group-users/#api-scim-directory-directoryid-users-post).

<Note>
  External Documentation

  To learn more, visit the [Atlassian User Provisioning documentation](https://developer.atlassian.com/cloud/admin/user-provisioning/rest/api-group-users/#api-scim-directory-directoryid-users-userid-delete).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter | Description                                                                                                                                                                                              |
  | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | User ID   | Unique ID to identiy the users. Use the [Get users API](https://developer.atlassian.com/cloud/admin/user-provisioning/rest/api-group-users/#api-scim-directory-directoryid-users-get) to get the userId. |
</div>

## Workflow Library Example

[Delete User with Atlassian User Provisioning and Send Results Via Email](https://library.blinkops.com/workflows/delete-user-with-atlassian-user-provisioning-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/delete-user-with-atlassian-user-provisioning-and-send-results-via-email/canvas" />
</div>
