---
title: "Delete a gas contract"
method: DELETE
path: "/users/{userId}/gas-contracts/{contractId}"
tags: ["Contracts|Gas"]
---

# Delete a gas contract

`DELETE /users/{userId}/gas-contracts/{contractId}`

## Request

- Base URL: `https://connect.clever.gy`
- URL: `https://connect.clever.gy/users/{userId}/gas-contracts/{contractId}`
- Auth: API key in header `clevergy-api-key`

Deletes an existing gas contract

## Path parameters

- `userId` string, required
- `contractId` string, required

## Response `204`

Gas contract deleted successfully

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Gas contract not found
- `default`: Unexpected error

---

[API](https://skmtc.dev/clevergy/apis/clevergy-connect-api.md) - [All operations](https://skmtc.dev/clevergy/apis/clevergy-connect-api/llms.txt) - [OpenAPI document](https://skmtc.dev/clevergy/apis/clevergy-connect-api/revisions/d333c5eecb5b?raw)
