Skip to main content

Delete a Member

This article provides an example of calling the Delete a Member API.

tip
  • This API is only available for spaces on the enterprise plan.(Learn more).
  • Only the primary admin and sub-admins who can manage members can use this API.

Example:

Suppose you have a space and you want to delete the member "John".

Follow these steps:

  1. Get your API Token. (How to get it)

  2. Get your Space ID. (How to get it)

  3. Get the unitId of the member "John" (How to get it)

    What is unitId?

  4. Open the terminal on your computer and execute the following code to send a query request to the server (assuming the spaceId is spcjXzqVrjaP3 and the unitId of member "John" is kD8tPcZ3fYxSjV9qWvL5X2TmQbN1nR6):

    curl -X DELETE \
    "https://aitable.ai/fusion/v1/spaces/spcjXzqVrjaP3/members/kD8tPcZ3fYxSjV9qWvL5X2TmQbN1nR6" \
    -H "Authorization: Bearer {Your API Token}"
  5. The server will return the following JSON data:

    For the meaning of each parameter in the response, please check the API Reference

    {
    "code": 200,
    "message": "SUCCESS",
    "success": true
    }