Skip to main content
Delete a file or directory from the Viking filesystem.

Python SDK

HTTP API

Parameters

string
required
Viking URI of the file or directory to remove
boolean
default:"false"
Remove directory and all its contents recursively

Response

string
Operation status (ok on success)
object
Result object containing the removed URI
number
Execution time in seconds

CLI

Error Cases

  • Attempting to remove a non-empty directory without recursive=true will fail
  • Removing a non-existent resource returns an error
  • The operation cannot be undone
This operation permanently deletes resources. Use with caution, especially with recursive=true.