DELETE
/
folders
/
{id}
import { Dub } from "dub";

const dub = new Dub({
  token: "DUB_API_KEY",
});

async function run() {
  const result = await dub.folders.delete("<id>");

  // Handle the result
  console.log(result);
}

run();
{
  "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.

The response is of type object.