---
title: "Delete a synced root folder"
description: "Permanently removes a synced root folder and all its associated content from Mindtickle Content Center."
contentType: "api-reference"
url: "https://developer.mindtickle.com/docs/content-center/integration/delete-a-synced-root-folder/"
---

## Prerequisites

1. [Authentication and setup](/docs/getting-started/authentication-and-setup/): A valid access token.
2. [Create an integration](/docs/content-center/integration/create-an-integration/): The integration must exist and provide the integration ID and root folder ID.

## Endpoint

```http
DELETE /services/data/v1.0/content/integration/{integrationId}
```

Base URL: the standard REST host for your region. See [Base URLs](/docs/getting-started/authentication-and-setup/#base-urls).

| Header | Required | Value or description |
| --- | --- | --- |
| `Authorization` | Required | `Bearer ACCESS_TOKEN` |
| `X-Consumer-Custom-Id` | Required | `COMPANY_ID` |
| `Content-Type` | Required | `application/json` |

## Path parameters

| Parameter | Type | Description |
| --- | --- | --- |
| `integrationId` | string | The unique identifier for the integration. |

## Query parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `rootFolderId` | string | Required | The unique identifier of the root folder in Content Center that you want to permanently delete. |

## Request

This endpoint has no request body.

### Request example

```bash
curl --location --request DELETE \
'https://api.mindtickle.com/services/data/v1.0/content/integration/INTEGRATION_ID?rootFolderId=ROOT_FOLDER_ID' \
--header 'Authorization: Bearer ACCESS_TOKEN' \
--header 'X-Consumer-Custom-Id: COMPANY_ID' \
--header 'Content-Type: application/json'
```

## Response

A successful call returns `200 OK`. Check the HTTP status to determine the outcome.

### Response example

```http
200 OK
```

## Notes

- **Behavior:** This operation deletes the specified root folder and all its subfolders and files.
- **Permissions:** Only users with admin privileges can perform this operation.
- **Limitations:** The action is irreversible. Ensure you have backups if necessary.
- **Files in use:** If a file is in use while this API runs, the file goes into offline mode. The file and the folders in its hierarchy are not deleted, and you must manually delete the file along with the relevant folders and subfolders from the Content Center.

## Related

- [Get executions for an integration](/docs/content-center/integration/get-executions-for-an-integration/): Review the sync history before deleting the folder.
