---
id: workflow-delete
title: Delete a workflow
description: >-
  Deletes the workflow: it disappears from lists and reads, along with its
  revisions and aliases. The record is retained internally (soft delete).
sidebar_label: Delete a workflow
hide_title: true
hide_table_of_contents: true
api: >-
  eJztV1Fv2zYQ/isHvjTFFDkbMnTQW9amQIehCLIEKRAE9Vk8WWwoUuVRdjxD/304ynFkJ22APeUhfollHsnv++67y2mtIs5ZFdfqyofbyvolaKqMM9F4x+omU5q4DKaVZ1WoD2QpEkOsCZabHQWYCNowti1hYKiCb8AajgzoNARCzRmg9W4OSxNrMJEh0MKw3JFi0Bpk4hwuaoJApQ8ajARFNI40GBcpOLR2BQfsqwg64Xibq0z5lgIKvE9aFWoLaohQmWoxYEORgtBcKyM0Woy1ypTDhlShjFaZCvS9M4G0KmLoKFNc1tSgKtYqrlqJ4hiMm6t+X5KtcIEqCuRKKgCBKSwoHDaCXIPRcDBdVl/zPJ++BR929HvDUFpDLh6WtWdycEsrOLB+SaFEJmDbzTPonPneEbQUwIc5OvNvIp0koDtsWisgl9VXU139Obuq2m5+5FR/kymmsgsmrhL9GWGgcNLFWhXXN7IciFvvmFi4/nZ0LH92GV6MwMISeaO+zkWM4y9fHu94n/gAheDDkNSZ1ytgXDEsa4ywlOVl8G5eALohEKai9DQDhLpr0B2Kc3BmCaZajGBlyekMvIMFWqOTAFChsV0glt8JyMWwGlSqKnLauDlUhqwWnUrvIrkoeLFtrSnTCZM2+Jml5pdvLODX49SbmGQ9GyJUdm8GP/tGZVT7XhCmHNFpDHpDKhE/OP/4Ht79cfQONnfBwIizwSgakGH6I0zTlOQ2iNOjGRI14Ng35z6e0wRBYuDy/FMGlM9zmNYxtlxMJvc5PeQVR2pyTYtJAs0PS87Hw8p3Tk93jfa/zhC/bCR9jPzh7M8+wjaeI8ZuRFlJRc0pjHccHx2nshRJnzt65OTUizTs1QzQnfQuuds4SWb5DNwtUZ6MeufkUSlmahBmdBqGgKtHWTsLxFIfT/u8eN7nJlIzvmbr1l0PpS74c2ocqeUJl+gmpXeVSf2vIWacP6NK03GEGhfSz4fOCpvbV/Cm9JreqP7+k6nfn+oil47uWiqlgQ7tdNNQXiv5tZJfK/lFVnI6M9ZeRrHRBCbofqTu2uheyZQiFT7MaF2wI2Nia3LXWdtajJUPTV76Zmew+UeqfBBiPN5sOclBajPRyfMQpLLNl48+NBhVof66ulB9MkvlZbvgGfL4a36UH6mt5dXnERw4OfskWraeY4Op7WzmymFYBtwadd8f64c+9hIn6418ke7ipLVokvNTbu4dd72dtzlxe3hzyFRhtLw/1J6jBK7XM2S6DLbv5efvHQWZSG8ytcBgZMxLqRe2MytjeIWW6SeCHZxv3PgWXsAI/qRW973BSWdYoO3kSWXqllbDa0d/02eqJtQUEvth4aQsqY2jLT/8FydVsK23D6d/n16cqkzhrv337J4uehLZej1EXPhbcn2/BRrlWbD2/X8z9fr7
sidebar_class_name: delete api-method
info_path: docs/api/nullplatform-api
custom_edit_url: null
canonical: 'https://docs.nullplatform.com/docs/api/workflow-delete'
---
<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"Delete a workflow"}
>
</Heading>

<MethodEndpoint
  method={"delete"}
  path={"/workflows/definitions/{id}"}
  context={"endpoint"}
>

</MethodEndpoint>

Deletes the workflow: it disappears from lists and reads, along with its revisions and aliases. The record is retained internally (soft delete).

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
  children={"Request"}
>
</Heading>

<ParamsDetails
  parameters={[{"in":"path","name":"id","required":true,"schema":{"type":"string"},"description":"Workflow reference: a server-minted id (`wf_...`) or the workflow's client-chosen key (lowercase slug, unique per organization).","example":"wf_ifWBbWfpug0n"}]}
>

</ParamsDetails>

<RequestSchema
  title={"Body"}
  body={undefined}
>

</RequestSchema>

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{"204":{"description":"The workflow was deleted."},"4XX":{"description":"Client error. The body says what went wrong: an error `type`, a human-readable `detail`, and, on validation failures, one entry per offending field.","content":{"application/problem+json":{"schema":{"title":"Problem","type":"object","description":"The standard error body (RFC 7807 problem details, served as `application/problem+json`).","properties":{"type":{"type":"string","description":"Error type URI, e.g. `https://workflow-system.dev/errors/workflow-not-found`.","example":"https://workflow-system.dev/errors/workflow-not-found"},"title":{"type":"string","example":"Not found"},"status":{"type":"integer","example":404},"detail":{"type":"string","example":"No workflow with id wf_ifWBbWfpug0n exists"},"instance":{"type":"string","example":"/workflows/definitions/wf_ifWBbWfpug0n"},"errors":{"type":"array","description":"Present on validation failures: one entry per offending field.","items":{"type":"object","properties":{"path":{"type":"string","example":"/steps/scan/config"},"message":{"type":"string","example":"must have required property 'code'"}}}}}}}}},"5XX":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"title":"Problem","type":"object","description":"The standard error body (RFC 7807 problem details, served as `application/problem+json`).","properties":{"type":{"type":"string","description":"Error type URI, e.g. `https://workflow-system.dev/errors/workflow-not-found`.","example":"https://workflow-system.dev/errors/workflow-not-found"},"title":{"type":"string","example":"Not found"},"status":{"type":"integer","example":404},"detail":{"type":"string","example":"No workflow with id wf_ifWBbWfpug0n exists"},"instance":{"type":"string","example":"/workflows/definitions/wf_ifWBbWfpug0n"},"errors":{"type":"array","description":"Present on validation failures: one entry per offending field.","items":{"type":"object","properties":{"path":{"type":"string","example":"/steps/scan/config"},"message":{"type":"string","example":"must have required property 'code'"}}}}}}}}}}}
>

</StatusCodes>

