---
agentTools:
  projectIndex: https://docs.doubletick.io/llms.txt
---

# Remove team member

Removes a team member from your organization.

### Before you call
- `memberPhoneNumber` (with country code) is required.
- The organization owner and bot users cannot be removed.

### How it works
- Chats assigned to the member are unassigned and their access to WhatsApp numbers is removed.
- If the member was a reporting manager, their team members move to the member's own manager.
- Fails if no user has that number or they are not part of your organization.
- Returns `success: true` on success.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "paths": {
    "/team-member": {
      "delete": {
        "operationId": "remove-team-member",
        "summary": "Remove team member",
        "description": "Removes a team member from your organization.\n\n### Before you call\n- `memberPhoneNumber` (with country code) is required.\n- The organization owner and bot users cannot be removed.\n\n### How it works\n- Chats assigned to the member are unassigned and their access to WhatsApp numbers is removed.\n- If the member was a reporting manager, their team members move to the member's own manager.\n- Fails if no user has that number or they are not part of your organization.\n- Returns `success: true` on success.",
        "tags": [
          "Teams"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RemoveTeamMemberDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Operation successfully completed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemoveTeamMemberResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "number",
                      "example": 400
                    },
                    "message": {
                      "type": "string",
                      "example": "Bad Request"
                    },
                    "error": {
                      "type": "string",
                      "example": "Error Text"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "number",
                      "example": 401
                    },
                    "message": {
                      "type": "string",
                      "example": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "User not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "number",
                      "example": 422
                    },
                    "message": {
                      "type": "string",
                      "example": "User not found"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "basic": []
          }
        ]
      }
    }
  },
  "info": {
    "title": "DoubleTick Public APIs",
    "description": "",
    "version": "2.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "https://public.doubletick.io"
    }
  ],
  "components": {
    "securitySchemes": {
      "basic": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header",
        "description": "Public API key."
      }
    },
    "schemas": {
      "RemoveTeamMemberDto": {
        "type": "object",
        "properties": {
          "memberPhoneNumber": {
            "type": "string",
            "description": "Phone number of the team member"
          }
        },
        "required": [
          "memberPhoneNumber"
        ]
      },
      "RemoveTeamMemberResponseDto": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates whether the operation was successful"
          }
        },
        "required": [
          "success"
        ]
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 99,
      "1": 154,
      "2": 196,
      "3": 207,
      "4": 67,
      "5": 147,
      "6": 180,
      "7": 0,
      "8": 57,
      "9": 36,
      "10": 231,
      "11": 202
    }
  }
}
```