agent adl file delete

<!-- prettier-ignore-start -->

Delete a file from an Agentforce Data Library.

Description for agent adl file delete

Permanently removes a file from an SFDRIVE data library and triggers re-indexing of the search index.

Flags

Flag Name (Long) Flag Name (Short) Description
<code>‑‑api‑version</code> N/A Type: Value<br><br>Override the api version used for api requests made by this command
<code>‑‑file‑id</code> N/A Type: Value<br>Required<br><br>ID of the file to delete (AiGroundingFileRef record ID).
<code>‑‑flags‑dir</code> N/A Type: Value<br><br>Import flag values from a directory.
<code>‑‑json</code> N/A Type: Boolean<br><br>Format output as json.
<code>‑‑library‑id</code> <code>‑i</code> Type: Value<br>Required<br><br>Agentforce Data Library ID (18-char Salesforce ID with prefix 1JD).
<code>‑‑target‑org</code> <code>‑o</code> Type: Value<br>Required<br><br>Username or alias of the target org. Not required if the target-org configuration variable is already set.

Examples for agent adl file delete

Delete a file from a data library:

sf agent adl file delete --library-id 1JDSG000007IbWX4A0 --file-id a1B2C3D4E5F6G7H8I9 --target-org myOrg
<!-- prettier-ignore-end -->