Delete file from dataset

Delete file from dataset

Delete a file from a dataset

POSThttps://studio.edgeimpulse.com/v1/api/organizations/{organizationId}/dataset/{dataset}/files/delete
Path parameters
organizationId*integer

Organization ID

dataset*string

Dataset name

Body
path*string

S3 path (within the portal)

Response

OK

Body
success*boolean

Whether the operation succeeded

errorstring

Optional error description (set if 'success' was false)

Request
const response = await fetch('https://studio.edgeimpulse.com/v1/api/organizations/{organizationId}/dataset/{dataset}/files/delete', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "path": "text"
    }),
});
const data = await response.json();
Response
{
  "success": false,
  "error": "text"
}

Last updated