Actions20
- User Actions
- Contact Actions
- Message Actions
- Conversation Actions
- Note Actions
- File Actions
File → Delete File
AI-generatedOverview
This node deletes a file identified by its File ID within the Superchat platform. It is useful in scenarios where you need to programmatically remove files stored or managed by Superchat, such as cleaning up outdated or unnecessary files to maintain storage hygiene.
Use Case Examples
- Deleting a file by providing its File ID to free up storage space.
- Automating file removal as part of a workflow that manages file lifecycle.
Properties
| Name | Meaning |
|---|---|
| File ID | The unique identifier of the file to be deleted. File IDs start with 'fi_' and are required to specify which file to delete. |
Output
JSON
error- Error message if the deletion fails and continueOnFail is enabled.json- The JSON response from the file deletion operation, typically empty or containing status information.
Dependencies
- Requires an API key credential for Superchat API authentication.
Troubleshooting
- Ensure the File ID is correctly formatted and starts with 'fi_'.
- Check that the API key credential is valid and has permissions to delete files.
- If the file does not exist or has already been deleted, the node may throw an error unless continueOnFail is enabled.
- Common error messages include authorization errors, invalid file ID, or network issues. Verify credentials and file ID correctness to resolve these.
Links
- Superchat API Documentation - Official documentation for Superchat API, including file management endpoints.