v2

latestOpenAPI 3.1.02026-08-06276982.8 KB
files

Delete file or folder

Delete a single file or folder.

This operation is also available via the SDK method client.files.delete().

<Info>This acts on files in the AI Hub filesystem, not your local filesystem.</Info>

<Note>Ensure the path is accessible within the context defined by the IB-Context header.</Note>

Not all filesystem types support this operation.

FilesystemSupported
Instabase
Amazon S3
Azure Blob Storage
Google Cloud Storage
Google Drive-
delete/v2/files/{path}

Path parameters

pathstring required

Full path to the file or folder.

Headers

Authorizationstring required

Bearer HTTP authentication.

IB-Contextstring

Typically your organization ID. See Authorization and context identification for details.

Response

Indicates that the deletion request has been accepted. <br/> <Note>The operation returns this status code regardless of whether the file or folder exists.</Note>

FilesDeleteFileOrFolderResponse202 required

Empty response body