Delete a folder from the workspace. All existing links will still work, but they will no longer be associated with this folder.
TypeScript
import { Dub } from "dub"; const dub = new Dub({ token: "DUB_API_KEY", }); async function run() { const result = await dub.folders.delete("<id>"); console.log(result); } run();
{ "id": "<string>" }
Default authentication mechanism
The ID of the folder to delete.
The deleted folder ID.
The ID of the deleted folder.
Was this page helpful?