# Undo an import

Administrators only. Takes away what the import made, and nothing that people have done since. An issue is erased for good (not sent to Recently Deleted) only if nobody has touched it: it was not edited after the import finished, has no comment from anyone but the import, no live attachment and no link added since. Such an issue stays, with the comments the import gave it, and is counted in `keptIssues`. Comments the import added to issues of an earlier import are removed unless someone edited them. The ledger rows of erased issues go with them, so the same file can be imported again, with a corrected mapping, as if the first run had not happened. Statuses, labels and projects the import created are kept. Allowed for 7 days after the import finishes (`undoableUntil`). A 409 says why not: `not_undoable` (not finished), `undo_expired`, or `already_undone` (also what the loser of two simultaneous undos gets). Recorded on the security log.

Canonical: https://easerix.com/docs/developers/api/tasks/imports/undoImport

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

export default function Layout(props) {
  const { APIPage, OpenAPIPage } = props.components ?? {};
  // "APIPage" is the old name from v10, this allows both for backward compatibility
  const Comp = OpenAPIPage ?? APIPage;
  return (
    <>
      {props.children}
      <Comp document="tasks" operations={[{"path":"/v1/imports/{id}/undo","method":"post"}]} />
    </>
  );
}
