FilesystemService

(-- api-linter: core::0136::http-method=disabled aip.dev/not-precedent: Remove is a custom method on a singleton resource, not a standard Delete method. It uses POST for consistency with other custom methods on the Filesystem singleton. --) (-- api-linter: core::0136::verb-noun=disabled aip.dev/not-precedent: Remove is a custom method on a singleton resource. The "remove" verb follows Unix convention (rm) and clearly conveys imperative action for filesystem operations. --) (-- api-linter: core::0133::synonyms=disabled aip.dev/not-precedent: Remove is a custom method on a singleton resource. The "remove" verb follows Unix convention (rm) and clearly conveys imperative action. --) Removes (deletes) a file or directory. Automatically detects whether the path is a file or directory. If the path is a symbolic link, the link itself is removed, not its target.

Authorization: Only the creator of the parent SandboxEngine is allowed to call this method.

post/v1/{name}/filesystem:remove

Request

Path parameters

namestring required

Required. The name of the sandbox engine. Format: workspaces/{workspace}/sandboxEngines/{sandbox_engine}

Request body

pathstring required

Required. The path to the file or directory to delete. All paths are rooted at the sandbox filesystem root. Must start with a forward slash (e.g., "/app.js", "/workspace/data"). If the path is a symbolic link, the link itself is removed, not its target.

recursiveboolean

Response

A successful response.

V1RemoveResponse required

Response from removing a file or directory.

Changes

No recorded changes to this operation across all 1 revision of this API.