Delete a File from a Library

Deletes a single file from an SFDRIVE library. Performs synchronous deletion of the file from S3 and removes the AiGroundingFileRef record.

Resource

1/einstein/data-libraries/libraryId/files/fileId

The libraryId is the 18 character library ID that has a prefix of 1JD.

The fileId is the 18 character AiGroundingFileRef record ID.

SFDRIVE libraries only. Attempting to call this endpoint on a non-SFDRIVE library returns 400 with ADL_UNSUPPORTED_SOURCE_TYPE.

Note

HTTP Methods

DELETE

Request body

None.

Response body

HTTP 204—File deleted; no content body.

HTTP 404—Library or file not found.