> For the complete documentation index, see [llms.txt](https://api-docs.everreal.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api-docs.everreal.co/endpoints/contract/contract-mutation.md). Agents can also search and read this documentation through its [MCP server](https://api-docs.everreal.co/~gitbook/mcp).

# Contract Mutation

### Mutation Types

{% hint style="info" %}
`removeContract` deletes a contract. Pass the EverReal `id` of the contract.
{% endhint %}

```graphql
type Mutation {
    removeContract(id: String): AsyncEventResponse
}

type AsyncEventResponse {
  statusCode: Int
  message: String
}
```

Here are details on the capabilities of different mutations

* The `removeContract` mutation is used to delete a contract from Everreal system and contract will no longer be available in Everreal. To delete contract, you should pass `everrealUUID` which can be acquired from contracting query by passing the propertyId for which you need to delete the contract.([reference](https://api-docs.everreal.co/endpoints/contract/contract-query.md) to get contractId)

Below we are providing a full example how to delete

{% tabs %}
{% tab title="GraphQL" %}

```graphql
mutation {
  removeContract(id: "<everreal_uuid>") {
    statusCode
    message
  }
}
```

{% endtab %}
{% endtabs %}
