---
title: "Stop sharing a computer with a person"
description: "Owner-only. Removes the person with this email address: their share, active or pending, and their request for access, which it declines."
canonical: "https://www.cool.computer/docs/api-reference/sharing/stop-sharing-a-computer-with-a-person"
---
# Stop sharing a computer with a person

> Owner-only. Removes the person with this email address: their share, active or pending, and their request for access, which it declines.

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

Owner-only. Removes the person with this email address: their share, active or pending, and their request for access, which it declines. Their access ends at once. The owner cannot be removed.

## 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.
- `email` (query, string, email, required)

## Responses

- `204`: Share removed or request declined.
- `400`: Bad Request. `owner_not_removable`: the email is the owner's; an invalid email is `invalid sharing request`.
- `401`: Unauthorized.
- `404`: Not Found. `share_not_found`: the computer is not shared with this email; otherwise the computer does not exist.
- `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/shares" \
  --url-query "email=$PARAM_EMAIL" \
  -H "authorization: Bearer $TOKEN"
```

`--url-query` encodes the value it sends and needs curl 7.87 or later.
