vals
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.
delete/v2/vals/{val_id}/files
Request
- Base URLhttps://api.val.town
- URLhttps://api.val.town/v2/vals/{val_id}/files
- Authnone declared
Path parameters
val_idstring uuid required
Id of a val
Query parameters
branch_idstring uuid
The specified branch of the resource. Defaults to main if not provided.
pathstring required
Path to a file or directory (e.g. 'dir/subdir/file.ts'). Pass in an empty string to represent the root directory.
recursiveboolean required
Whether to recursively act on all files in the project
Response
Default Response
Changes
- info
endpoint added
- info