JavaScript
const options = {method: 'DELETE', headers: {'X-Browser-Use-API-Key': '<api-key>'}}; fetch('https://api.browser-use.com/api/v3/workspaces/{workspace_id}/files', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
Delete a single file from a workspace.
Documentation IndexFetch the complete documentation index at: https://browseruse-0aece648-x402-sdk.mintlify.app/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://browseruse-0aece648-x402-sdk.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Relative file path to delete
Successful Response
Was this page helpful?