curl --request DELETE \
--url "https://api.roe-ai.com/v1/datasets/YOUR_DATASET_ID/files/YOUR_FILE_ID/?organization_id=YOUR_ORG_ID" \
--header "Authorization: Bearer YOUR_API_KEY"
Roe Datasets
Delete a File
Mixin for organization access validation.
Automatically resolves and validates organization access on every request,
making the organization available as self.organization.
For API key auth: organization is derived from the key (no org_id param needed).
For user auth: organization_id must be provided in the request
(kwargs / headers / body / query params).
Usage:
class MyView(BaseOrganizationAccessMixin, APIView):
def get(self, request):
# self.organization is automatically available
return Response({"org": self.organization.name})
DELETE
/
v1
/
datasets
/
{dataset_id}
/
files
/
{id}
/
curl --request DELETE \
--url "https://api.roe-ai.com/v1/datasets/YOUR_DATASET_ID/files/YOUR_FILE_ID/?organization_id=YOUR_ORG_ID" \
--header "Authorization: Bearer YOUR_API_KEY"
curl --request DELETE \
--url "https://api.roe-ai.com/v1/datasets/YOUR_DATASET_ID/files/YOUR_FILE_ID/?organization_id=YOUR_ORG_ID" \
--header "Authorization: Bearer YOUR_API_KEY"
Authorizations
Query Parameters
Response
204
No response body