> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sarasfinance.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Process Storage

> Delete one or more files from the knowledge repository of a process.

### Body Parameters

<ParamField body="fileIds" type="string[]" required>
  List of unique file IDs to delete.
</ParamField>

<ParamField body="recover" type="boolean" default="false">
  Set `true` to recover/restore deleted files instead of deleting them.
</ParamField>

### Response

<ResponseField name="success" type="boolean">
  Status of the deletion request.
</ResponseField>

<ResponseField name="message" type="string">
  A descriptive status message.
</ResponseField>

<RequestExample>
  ```bash theme={null}
  curl --location 'https://api.sarasfinance.com/v1/process/knowledges/deleteStorage' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer <token>' \
  --data '{
      "fileIds": ["file_a781b2e9"],
      "recover": false
  }'
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "success": true,
    "message": "Files deleted successfully"
  }
  ```
</ResponseExample>

### Error Codes

| Code                                       | ID   | Description                            |
| :----------------------------------------- | :--- | :------------------------------------- |
| `ERROR_PROCESS_META_IS_MISSING_IN_REQUEST` | 1200 | Metadata missing in request            |
| `ERROR_FILE_ID_NOT_FOUND`                  | 1704 | File ID does not exist                 |
| `ERROR_STORAGE_LOCKED`                     | 1712 | Storage repository is currently locked |
