Skip to main content
POST
Delete Users
Use this API to remove Users from:
  1. Organization: This will remove their access from all the documents and data in the organization. It will also remove these users from the contact list of the organization.
  2. Document: This will remove their access from the specified document. It will also remove these users from the contact list of the document. If you pass the documentId, then the users will be removed from the document.
  3. All documents: Pass allDocuments: true to remove the users from every document in the organization in one call, including any documents that have since been deleted. Their organization and folder access is not changed.

Endpoint

POST https://api.velt.dev/v2/users/delete

Headers

string
required
Your API key.
string
required

Body

Params

object
required

Example Requests

1. Delete users in a specific organization

2. Delete users in a specific document within an organization

3. Delete users in a specific folder within an organization

4. Delete users from all documents within an organization

Response

Success Response

User(s) Not Found

Success Response (allDocuments: true)

Each user’s entry also lists the documents they were removed from (removedDocumentIds) and how many stored document IDs pointed to documents that no longer exist (removedStaleDocumentIdsCount).
With allDocuments: true, a user who has no document access in the organization returns "success": false with the message "User does not exist.", and the request fails with "Error deleting user(s).".

Failure Response