Delete a resource
Deletes the resource, its files and its indexed passages. Refused with conflict while an assistant that reads only chosen resources (knowledge: selected) lists it: remove it from the assistant first. An assistant that reads everything, or a tag, simply reads one resource fewer.
DELETE/v1/resources/{resource_id}
Requires resources:delete.
Deleting is permanent. Lookio removes the resource’s passages from the index first, then the resource and its files. If the index cannot be cleaned, the call fails with service_unavailable and nothing changes: retry.
A resource that an assistant uses by name cannot be deleted. Remove it from the assistant first, or the call fails with conflict. An assistant that reads all resources, or a tag, simply reads one fewer. See Deleting things.
Authorizations
Authorizationbearerin headerrequiredPath parameters
resource_idstringrequiredpattern: ^res_[abcdefghjkmnpqrstuvwxyz23456789]{12}$Response
Delete a resource
dataobjectrequiredrequest_idstringrequiredPossible codes: authentication_required, invalid_api_key, api_key_expired, api_key_revoked, invalid_access_key
errorobjectrequiredrequest_idstringrequiredPossible codes: insufficient_scope, feature_not_available, admin_required, permission_denied
errorobjectrequiredrequest_idstringrequiredPossible codes: resource_not_found
errorobjectrequiredrequest_idstringrequiredPossible codes: conflict, assistant_has_no_resources
errorobjectrequiredrequest_idstringrequiredPossible codes: rate_limited
errorobjectrequiredrequest_idstringrequiredPossible codes: internal_error
errorobjectrequiredrequest_idstringrequired