Remove from the library
DELETE /v1/files/{id}FreeWrites
Removes a file from the organization's library and its shares (admin access on the file). The exported file itself stays in the public cache; export_boundary rebuilds the url any time. Free.
MCP tool delete_file · CLI geocode delete-file · RPC POST /v1/ops/delete_file
Input
| Field | Type | Description |
|---|---|---|
idpath, required | string | The file's id from list_files or save_file. |
Example request
curl -X DELETE "https://geocodeai.dev/v1/files/%3Cid%3E" \ -H "Authorization: Bearer $GEOCODE_API_KEY"Example response
See the description above for what this returns.
Errors
Failures are RFC 9457 problems. Common ones here: 400 invalid_input, 401 unauthorized, 429 rate_limited.