---
title: "Deletes the document team with the specified id from a document."
method: DELETE
path: "/documents/{documentId}/teams/{documentToTeamId}"
tags: ["documents"]
---

# Deletes the document team with the specified id from a document.

`DELETE /documents/{documentId}/teams/{documentToTeamId}`

Deletes the specific document team from a document. Deleting a document team will affect their access to the document.
            This operation cannot be performed on inherited document teams, only explicit ones.
            There will be recalculation of permissions for related entities considering the deleted document team.
            
            <Check title="Required Permissions" icon="key">The user must have at least `write` permissions for the specified document.</Check>

## Path parameters

- `documentId` string, uuid, required
- `documentToTeamId` string, uuid, required

## Headers

- `Authorization` string, required

## Response `204`

No Content

- object

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found

---

[API](https://skmtc.net/awork-io/apis/api-v1-reference.md) · [All operations](https://skmtc.net/awork-io/apis/api-v1-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/awork-io/api-v1-reference/versions/f784a53f60df/schema)
