---
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: eJztV9tu3DYQ/ZUBX2K7stYtUqTQm5M4QIqiCBIHDpAYWa44WrGmSIUz2vV2oX8vhtJefIvR5CUP2ZfVZTg8M3PmaLhWrOekio/qIsSryoUlaGc1IanLTBmkMtqWbfCqUC/RISMB1zgY5TB1mpF4CqX2PjDMEEyyMrnKVGgxaln82qhCLccNjtPaYrBTmWp11A0yRoGxVla2ajXXKlNeN6gKZY3KVMQvnY1oVMGxw0xRWWOjVbFWvGrFijhaP1f9bdjbwCJWGNGXWIAGwrjAeNxYz2jAGjiYLqvPeZ5PDyHEFOMG8BOC0ln0fFzWgdDDFa7gwIUlxlITArlunkHn7ZcOocUIIc61t/+m0A8lEXitm9YJyGX12VYXz2cXVdvNT7zqs3sjTin6nqDPNzUC8bhXKEsQMQVvQHsDuuNw3GjrWVs/lG2H1tkFqv4yU4RlFy2vUoVmqCPG045rVXy8lNcRqQ1eSFOs1W8nT+XvITxLTTuO9Jl6+uHDXfMXKd+AMYaYgyyeBbMC0iuCZa0ZlvJ6GYOfF6D9YAhTSco0Aw1112h/HFEbPXMIU4OsrZNX3mQQPCy0syYVCCptXReR5DkCeo6roYpVhd5YP4fKokuZKYNn9Cx4dds6WyYPkzaGmcPml39IwK/3q2Q5JfLNYKGyTd3C7B8sWd1XNmLtjY5mDCoFfvD21Qt49sfJMxj3giEiymBTS4LpQ5imiYRtlH5kO1RpwHGbR7fxnCUIYgPv377OAPN5DtOauaViMtl2NK2IsckNLiYJNO1e+cDHVei8md6k1jf5EL6MKb2LfOf778CwtSfW3O2FrKTj5xj3Vzw9eZo6SFL6mOutLMDSci3KcaunAa8tMcne1ksxy0fgbgOlicHKeivJp8ldqVBDYva86Rj16k7V3kiHe36A58XjPLeMzf42W7be5FDSrK+HRowtTajUflIGX9kkVQ0S6fkjWWk6Yqj1AmEjgjDuvoInZTD4RPWbX6Z+v09F3nu8brEUgR/kfhSUn538s5N/dvIP2cnJJ9dBBsa9CVHQPZTdtTX9ZBxaJ+t00SsZWaTjh5myi26PqLq1ue+ca53mKsQmL0NzY8p5J10/JGZ/1tnGKI7UOIzJ/WCksvHiVYiNZlWoPy/OVZ/IU4V9DdlMpDLhCcah1if5r/nJHQY876wzGbTdzFmqM4idT1MMhFmKcEtiEpLI2Lof2o7i6OfWY/7Jf/KvQhfBGtS0mVQRuLYEp29eF2JwDEdHL3cZPjoCHfHGSAwmlF2DnimHswVGGc0WCDMsQ4MEGnzXzFAqfXQUcWElxKOjDCiAD1wLRS0BiiS7QJwPe54ORRz3k8HVQBukyyMBB9Cw8QUHzl4hTGVAnR7mcFqyXWgWv9qPg6YdR0XuoiewTMDRzufiK/hxx7NrLLtNkBHLIGKd4kl5Fs7DbJX+s1ElfNuxzIodDxdSCxfmNHp8h2VEpvR4oaOV+VOcXyG2UEY06NlqNxgQsmAm8QahSineUTuNx20gbnT6GI1ng+EYto3zNmPWu2/b/z+xjQRnvOZJ67RNWpW6Z6MRH7fnuGHnLUtUpop0UNucHzNVDAAvM1UHYlm7Xs804fvo+l4ef+kwypniMlObXKV+NZbk2qii0o7wKxEevB0l5RB+gHPevenbCLwXeV9o18mdytQVroazrZwBvyni7znkfQPUoZr9ZZ+pGrXBmGo1vDstS2x5b9WDU5UI7VbiX579dXZ+JqS5qbC3FDVtdC+49XqwOA9X6Pt+i5XlXrD2/X9/aekr
sidebar_class_name: "delete api-method"
info_path: docs/api/workflows
custom_edit_url: null
---

import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import ParamsDetails from "@theme/ParamsDetails";
import RequestSchema from "@theme/RequestSchema";
import StatusCodes from "@theme/StatusCodes";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
import Heading from "@theme/Heading";

<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>


      