• Delete a file from S3 attached to the server based on its id. This will disassociate chunks from the file, but only delete them all together if you specify delete_chunks to be true. Auth’ed user or api key must have an admin or owner role for the specified dataset’s organization.

    Example:

    const data = await trieve.deleteFile({
    fileId: "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    });

    Parameters

    Returns Promise<void>