Remove a member
team_admin removes anyone; a member may remove self (leave). Guards the last admin.
Not available to personal access tokens; call it from a signed-in session.
bearerAuthorizationBearer <token>A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).
team_id*stringmember_id*stringSuccess
curl -X DELETE 'http://localhost:7091/api/teams/string/members/string'Unshare a resource from this team DELETE
Allowed with `share` on the resource β no membership needed, so an owner who left the team can still pull their resource back β or for a team_admin of this team. `target_user_id` picks one member's grant (absent β the whole-team grant). Identifiers come from query params (some proxies strip DELETE bodies), with a JSON-body fallback. Not available to [personal access tokens](/API/personal-access-tokens); call it from a signed-in session.
Delete the team DELETE
Owner-only (a global admin overrides). Not available to [personal access tokens](/API/personal-access-tokens); call it from a signed-in session.