| Name | Type | Description |
|---|---|---|
file_path* | str | Absolute path to delete (a file, or a directory/prefix to remove recursively). Must start with '/'. |
Delete a path, recursively removing anything nested under it.
This method is optional. Backends that do not implement it inherit this
default, which raises NotImplementedError. Callers that need to support
a mix of backends should guard with
supports_delete before
calling, or catch NotImplementedError.
Deletion is recursive: it removes file_path plus everything nested
under it. On hierarchical backends (e.g.
FilesystemBackend)
that means a directory and its contents; on key-value backends it means
the exact key plus every key sharing the file_path + "/" prefix.