Delete a file or empty directory from the share
DELETE/shares/:name/browse
Required role: admin. Only an account or token with the admin role can call this operation.
Example request
curl --request DELETE \
--header "Authorization: Bearer $HOSERVA_TOKEN" \
--header "Content-Type: application/json" \
--data @body.json \
"https://$HOSERVA_HOST:8008/api/v1/shares/{name}/browse"
Deletes one file or empty directory within the share, given a path relative to the share root. Refuses the share root itself and any path that would resolve outside the share's root, including through a symlink. confirm: true is required.
Request
Responses
- 204
- default
File or directory deleted.
An error response.