Skip to main content

Delete folder

Move a folder to the Box trash. A folder that still has content is only removed when you allow it.

Command in the Box toolkit · id ooa.box/delete_folder · 5 inputs (2 required), no outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Folder IDStringYesFolder to delete.
Include contentsBooleanNofalseAlso delete everything inside the folder.
Access tokenCredentialYesBox access token from the vault. Or leave it empty and choose a connection that signs in, which gets and renews the token.
As userStringNoAct on behalf of this Box user id (needs an admin or service account token). Leave empty to act as yourself.
Endpoint addressStringNohttps://api.box.comBox API address. Leave the default unless your administrator gives you another.