Skip to main content

Delete file

Move a file to the Box trash, or delete it for good.

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

Inputs​

InputTypeRequiredDefaultWhat it is
File IDStringYesFile to delete.
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.
PermanentlyBooleanNofalseAlso remove the file from the trash, so it cannot be restored.