filesDelete
Deletes a file.
Details
- Method:
POST - Path:
/files.delete - Operation ID:
files_delete
Parameters
{
"token": {
"description": "Authentication token. Requires scope: `files:write:user`",
"required": false,
"location": "header",
"type": "string"
},
"file": {
"description": "ID of file to delete.",
"required": false,
"location": "formData",
"type": "string"
}
}Response Schema
{
"additionalProperties": false,
"description": "Schema for successful response files.delete method",
"properties": {
"ok": {
"enum": [
true
],
"title": "default success response",
"type": "boolean"
}
},
"required": [
"ok"
],
"title": "files.delete schema",
"type": "object"
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('slack')
# Call this tool
result = await agent.call_tool('filesDelete', {
# Add required parameters here
})