> ## Documentation Index
> Fetch the complete documentation index at: https://docs.occtoo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# deleteLifecycle

> Delete a lifecycle and schedule removal of its saved results. The ETag must match.



**mutation** `deleteLifecycle(input: DeleteLifecycleInput!): DeleteLifecyclePayload!`

## Arguments

**`input`**: `DeleteLifecycleInput!` (required)

## Returns

`DeleteLifecyclePayload!`

**`deletedLifecycle`**: `DeletedLifecycle`

---

**`errors`**: `[DeleteLifecycleError!]`

## Examples

```graphql Mutation
mutation DeleteLifecycle($input: DeleteLifecycleInput!) {
  deleteLifecycle(input: $input) {
    deletedLifecycle {
      id
      lifecycleId
    }
    errors {
      __typename
      ... on GraphQlError {
        code
        details {
          __typename
        }
        message
      }
    }
  }
}
```

```json Variables
{
  "input": {
    "lifecycleId": "value"
  }
}
```

```json Response
{
  "data": {
    "deleteLifecycle": {
      "deletedLifecycle": {
        "id": "id",
        "lifecycleId": "value"
      },
      "errors": [
        {
          "__typename": "GraphQlError",
          "code": "string",
          "details": [
            {
              "__typename": "KeyValuePairOfStringAndString"
            }
          ],
          "message": "string"
        }
      ]
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.