---
title: "Delete last task run's default dataset"
method: DELETE
path: "/v2/actor-tasks/{actorTaskId}/runs/last/dataset"
tags: ["Last Actor task run's default dataset"]
---

# Delete last task run's default dataset

`DELETE /v2/actor-tasks/{actorTaskId}/runs/last/dataset`

Deletes the default dataset associated with the last Actor task run.

This endpoint is a shortcut for getting the last task run's `defaultDatasetId` and then using the
[Delete dataset](/api/v2/dataset-delete) endpoint.

## Path parameters

- `actorTaskId` string, required

## Query parameters

- `status` string
- `origin` 'DEVELOPMENT' | 'WEB' | 'API' | 'SCHEDULER' | 'TEST' | 'WEBHOOK' | 'ACTOR' | 'CLI' | 'CI' | 'STANDBY' | 'MCP'

## Response `204`

No content

## Other responses

- `400` — Bad request - invalid input parameters or request body.
- `401` — Unauthorized - authentication required or invalid token.
- `403` — Forbidden - insufficient permissions to perform this action.
- `404` — Not found - the requested resource does not exist.
- `405` — Method not allowed.
- `429` — Too many requests - rate limit exceeded.

---

[API](https://skmtc.net/apify/apis/apify-api.md) · [All operations](https://skmtc.net/apify/apis/apify-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/apify/apify-api/versions/01a71794279b/schema)
