---
title: "Undo one list import"
method: DELETE
path: "/workspace/tables/{id}/import/{batchId}"
tags: ["workspace"]
---

# Undo one list import

`DELETE /workspace/tables/{id}/import/{batchId}`

## Request

- Base URL: `https://api.onplana.com/api`
- URL: `https://api.onplana.com/api/workspace/tables/{id}/import/{batchId}`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

Removes the rows of one import batch. Bounded two ways: only within a day of the import (409 UNDO_WINDOW_PASSED after that), and a row somebody has EDITED since the import is kept rather than deleted, because it is no longer just a copy of a spreadsheet line. Returns how many were removed and how many were kept for that reason.

## Path parameters

- `id` string, required
- `batchId` string, required

## Headers

- `X-Organization-Id` string, required

## Response `200`

{ deleted, keptModified }

## Other responses

- `400`: Validation error
- `401`: Unauthorized - missing or invalid JWT
- `403`: Forbidden - insufficient role

---

[API](https://skmtc.dev/onplana/apis/onplana-api.md) · [All operations](https://skmtc.dev/onplana/apis/onplana-api/llms.txt) · [OpenAPI document](https://skmtc.dev/onplana/apis/onplana-api/revisions/c3d6c89e9dc8?raw)
