Delete
Delete
client.vals.files.delete(stringvalId, FileDeleteParamsparams, RequestOptionsoptions?): void
delete/v2/vals/{val_id}/files
Deletes a file or a directory. To delete a directory and all of its children, use the recursive flag. To delete all files, pass in an empty path and the recursive flag.
Parameters
valIdstring
formatuuid
paramspathstringrecursivebooleanbranch_idstringFileDeleteParams
import ValTown from '@valtown/sdk';
const client = new ValTown();
await client.vals.files.delete('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', { path: 'path', recursive: true });