Delete agent file
curl --request DELETE \
--url https://developer.creao.ai/v1/agents/{agent_id}/files/{file_id} \
--header 'Authorization: Bearer <token>'const url = 'https://developer.creao.ai/v1/agents/{agent_id}/files/{file_id}';
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://developer.creao.ai/v1/agents/{agent_id}/files/{file_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"deleted": true
}Agent Files
Delete agent file
Delete one file from a personal CREAO agent’s file space.
DELETE
/
v1
/
agents
/
{agent_id}
/
files
/
{file_id}
Delete agent file
curl --request DELETE \
--url https://developer.creao.ai/v1/agents/{agent_id}/files/{file_id} \
--header 'Authorization: Bearer <token>'const url = 'https://developer.creao.ai/v1/agents/{agent_id}/files/{file_id}';
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://developer.creao.ai/v1/agents/{agent_id}/files/{file_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"deleted": true
}Authorizations
bearerAuthapiKeyQuery
Account API key from Developer Console. Keys start with cr_sk_.
Response
File deleted.
Available options:
true