---
title: "Delete Subfolder"
method: DELETE
path: "/folders/{folderId}/subfolders/{subfolderId}"
tags: ["Subfolders"]
---

# Delete Subfolder

`DELETE /folders/{folderId}/subfolders/{subfolderId}`

## Request

- Base URL: `https://api.wistia.com/modern`
- URL: `https://api.wistia.com/modern/folders/{folderId}/subfolders/{subfolderId}`
- Auth: HTTP bearer

Deletes one subfolder and moves its media to the folder's root level. The subfolder is soft-deleted and is no longer accessible via the API. To delete multiple subfolders and their media, use the Bulk Delete Subfolders endpoint.

## Requires api token with one of the following permissions
```
Read, update & delete anything
```

Tokens with the "Act with a team member's permissions" permission
(`all:delegate_to_contact_permissions` scope) can also be used. Requests
made with such a token are authorized using the permissions of the
contact assigned to the token.

An [expiring access token](https://docs.wistia.com/reference/post_expiring-token)
created with the `all:delegate_to_contact_permissions` scope and an
authorization granting the `update` permission on this folder can also
be used.

## Path parameters

- `folderId` string, required
- `subfolderId` string, required

## Headers

- `X-Wistia-API-Version` string, required

## Response `200`

Subfolder deleted successfully

- object: A subfolder within a folder that contains media.
  - `hashed_id` string, nullable, required: A unique alphanumeric identifier for this subfolder.
  - `name` string, nullable: The display name of the subfolder.
  - `description` string, nullable: A description for the subfolder.
  - `position` integer, nullable, required: The position of this subfolder within its folder, used for ordering.
  - `created` string, date-time, nullable, required: The date when the subfolder was created.
  - `updated` string, date-time, nullable, required: The date when the subfolder was last modified.
  - `cursor` string, nullable: A cursor for stable pagination based on current `sort_by` order. You can pass this to `cursor[before]` or `cursor[after]` as a parameter to fetch the records before or after this record in the same sort order. This is only populated if records were fetched with `cursor[enabled]`, or `cursor[before]` or `cursor[after]`.

## Other responses

- `401`: Unauthorized, invalid or missing token
- `403`: Forbidden, token is valid but account does not have access to feature
- `404`: Folder or subfolder not found
- `500`: Internal server error

## Changes

- **2026-11-03** `b86cb2a7b420`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/wistia/apis/data-api/changes/folders/:folderId/subfolders/:subfolderId/delete.md)

---

[API](https://skmtc.dev/wistia/apis/data-api.md) - [All operations](https://skmtc.dev/wistia/apis/data-api/llms.txt) - [OpenAPI document](https://skmtc.dev/wistia/apis/data-api/revisions/b86cb2a7b420?raw)
