---
title: "Leave a computer shared with you"
description: "For someone the computer is shared with, with their own sign-in."
canonical: "https://www.cool.computer/docs/api-reference/sharing/leave-a-computer-shared-with-you"
---
# Leave a computer shared with you

> For someone the computer is shared with, with their own sign-in.

```http
DELETE https://api.cool.computer/api/computers/{id}/membership
```

For someone the computer is shared with, with their own sign-in. Removes the caller's own access exactly as the owner removing them would (DELETE /api/computers/{id}/shares?email=): their access ends at once. A public computer still opens by its address; a private one needs the owner to share it again.

## Authorization

- A Cool Computers API key, user access token, or claimed agent access token in the Authorization header. Follow https://www.cool.computer/auth.md for agent registration and https://www.cool.computer/authentication.md for direct user credentials.

## Parameters

- `id` (path, string, at least 1 characters, required): The computer's name, such as agent-atlas, or its id (cmp_…). Every caller may use either, the computer's own runtime token included.

## Responses

- `204`: Access removed.
- `400`: Bad Request. `owner_not_removable`: the caller owns the computer; delete it instead.
- `401`: Unauthorized.
- `404`: Not Found: the computer does not exist or is not shared with the caller.
- `429`: Too Many Requests. If the problem code is api_request_rate_exceeded, wait for Retry-After seconds; other problem codes describe a separate limit.
- `500`: Internal Server Error.

An error is an `application/problem+json` document with a stable `code`; [API errors](/docs/api-reference/errors) says how to handle one.

## Example

```sh
curl -X DELETE "https://api.cool.computer/api/computers/$PARAM_ID/membership" \
  -H "authorization: Bearer $TOKEN"
```
