Remove a member from the organization
DELETE
/organizations/{id}/members/{userId}
const url = 'https://api.krakenkey.io/organizations/example/members/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.krakenkey.io/organizations/example/members/example \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Organization UUID
userId
required
string
User ID to remove
Responses
Section titled “Responses”Member removed
Cannot remove the owner
Member not found in org