> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cocoondata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# <access-service>/api/v1/items/{itemId}/unshare

## URL structure&#x20;

```text theme={null}
https://access-service.xy-company.com/api/v1/items/{itemId}/unshare
```

where `{itemId}` is the ID of a file object/Secure Object or folder/collection.

## Supported methods and overview&#x20;

* `PUT` - removes (i.e. 'unshares') all collaborators from a file object/[Secure Object](/3.4/api/working-with-files-and-folders-fundamentals.md#secure-object) or folder/[collection](/3.4/api/working-with-files-and-folders-fundamentals.md#collection) (i.e. [item](/3.4/api/working-with-files-and-folders-fundamentals.md#item)), specified by `itemId`.

> [!NOTE]
>
> This method takes no parameters.

## Detailed description&#x20;

This API endpoint removes all collaborators from either a file object or folder (including the folder's contents), specified by `itemId`.

The item's ID can be obtained by calling the [\<access-service>/api/v1/organisations/\{orgId}/items](/3.4/api/access-service-api-v1-organisations-orgid-items.md) API endpoint, which retrieves a list of information associated with file objects and folders that can be filtered using various 'search' criteria.

If the item's ID is a folder, then *all* collaborators will also be removed from *every* item contained within this folder; that is, any collaborators which had been set *explicitly* on any items contained within this folder are also removed.

## Supported roles and conditions&#x20;

This API endpoint supports requests utilizing Covata user accounts with the following [roles](/3.4/admin-org/administering-users-within-an-organisation.md#an-organisation-users-roles) (as described in the [Organization Administrator's Guide](/3.4/admin-org.md)):

* [Originator](/3.4/admin-org/administering-users-within-an-organisation.md#originator-role) - when this user owns the item whose ID is specified by `{itemId}` in the request's URL.
* **Originator**, [Collaborator](/3.4/admin-org/administering-users-within-an-organisation.md#collaborator-role) and [Ad hoc](/3.4/admin-org/administering-users-within-an-organisation.md#adhoc-role) - when this user is a collaborator with the **Share** [permission](/3.4/api/access-service-api-v1-permissions-sets.md) on the item whose ID is specified by `{itemId}` in the URL.

The Covata Platform's resources available to one of these Covata users (above) is determined by the access token submitted in the [header](/3.4/api/access-service-api-v1-items-itemid-unshare.md#access-service-api-v1-items-itemid-unshare-required-headers) of requests to this endpoint.

## Required headers&#x20;

The appropriate access token as the `Bearer` token:

* `Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJleHAiOjE0NjcwMTY2NjYsInVzZXJfbmFtZSI6ImFsZXgub...`

## Returns&#x20;

If the request succeeded, then an HTTP response status `200 OK` is returned.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.