DELETE
/
folders
/
{id}
from dub import Dub


with Dub(
    token="DUB_API_KEY",
) as d_client:

    res = d_client.folders.delete(id="<id>")

    assert res is not None

    # Handle response
    print(res)
{
  "id": "<string>"
}

Authorizations

Authorization
string
header
required

Default authentication mechanism

Path Parameters

id
string
required

The ID of the folder to delete.

Response

200
application/json
The deleted folder ID.
id
string
required

The ID of the deleted folder.