---
id: workflow-alias-delete
title: Delete an alias
description: Deletes the alias. `latest` cannot be deleted.
sidebar_label: Delete an alias
hide_title: true
hide_table_of_contents: true
api: >-
  eJztV01v20YQ/SuDucRGacotXKTgzU0cIEURBKkDBwiMaMQdihuTu8zuULIq8L8Xs5Rk+StGk0sO8cWkdnb3zbx5o6c1Cs0jFh/xwoerqvFLoMZS5IiXGRqOZbCdWO+wwJfcsHAEqXkMymHakHCUKZTknBeYMZgUZXLM0HccSDe/NljgcnPBUdpbjHGYYUeBWhYOCmONVq/qSGrM0FHLWKA1mGHgL70NbLCQ0HOGsay5JSzWKKtOo6IE6+Y43IW9SyxwxYFdyQUQRA4LDketdcIGrIGD6bL6lOf59BB8SDluAT+LUDaWnRyVtY/s4IpXcND4JYeSIkNs+nkGvbNfeoaOA/gwJ2f/TakfaiH4mtquUZDL6pOtLv6cXVRdPz92OGQPZpxK9D1Jn285Aj1xjygbIXBK3gA5A9SLP2rJOiHrRtpu0DZ2wThcZhi57IOVVWJoxhQ4nPZSY/HxUpcDx847bZpijb8dn+i/x/AsKd70yJDhyYcP98NfpHoDh+BDDrp55s0KIq0iLGsSWOryMng3L4DcGAhTLco0A4K6b8kdBSZDs4ZhaljINrrkTAbewYIaaxJBUJFt+sBRP2dgJ2E1slhV7Ix1c6gsN6kypXfCThQvdV1jy3TCpAt+1nD7y+eo4Nf7LFlJhXw7RmC25c3PPnMp+BBtUcgZCmaTVEr84N2rF/D8j+PnsLkLxoxiBlsuI0wfwzRNTdgF1aPYkaURx90+uovnLEHQGHj/7nUGnM9zmNYiXSwmk52i4yoKt7nhxSSBjjdLzstR5Xtnprdb65vO0H7ZlPQ+8puz33iBXXwUkn4vZVTFzzns7zg5PkkK0pI+dfRuLMDSSq2T446mga9tlKh3W6dklk/A3SUaJ4Yr66wWP07ujwocC7N3GoVAq3usvVWFO3mkz4un+9wKt/vX7Lr1dg+lmfX11KJwFyexJDcpvatsGlUtx0jzJ6rS9lGgpgXDdgjC5vYVPCu94Wc4bP8y/P2hKfLe8XXHpQ74cdxvBspPJf9U8k8l/5BKTmdK7dUw7jlERfdYddfWDJONaZ2s08OAallU8aOn7EOz16jU2dz1TdM1JJUPbV769pbL+UdVPxZm3+vsctSDcGPG9H0Mwmzz8MqHlgQL/OviHIfUPJXX7Ypn5PXX/Dg/xp0E8M0eHDh9+1pr2/koLaUxtHGFowFXv7P1h7e6ZX0z1f6/V9+kJnwtk64hm7o01W3bHR93Dn68eccAZlgki7795ZBhMQK8zLD2UXTvej2jyO9DMwz68Zeeg7rJywwXFKy6tMSUsVGfDRYVNZG/kuHBu00zHcIP4PAfLN9W2k6FvaCm1zfM8IpX468adf/flPH32PtvgDqyOVwOGdZMhkPialw7LUvuZG/Xo9+nKrGduF+e/X12fqZNc1tbd7SULnoQ3Ho9Rpz7K3bDsMMq+q5Yh+E/xREwZw==
sidebar_class_name: delete api-method
info_path: docs/api/nullplatform-api
custom_edit_url: null
canonical: 'https://docs.nullplatform.com/docs/api/workflow-alias-delete'
---
<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"Delete an alias"}
>
</Heading>

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

</MethodEndpoint>

Deletes the alias. `latest` cannot be deleted.

<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"},{"in":"path","name":"alias","required":true,"schema":{"type":"string"},"description":"The alias name. `latest` is reserved and auto-maintained.","example":"live"}]}
>

</ParamsDetails>

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

</RequestSchema>

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{"204":{"description":"The alias 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>

