---
title: "Delete an electricity contract"
method: DELETE
path: "/users/{userId}/electricity-contracts/{contractId}"
tags: ["Contracts|Electricity"]
---

# Delete an electricity contract

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

## Request

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

Deletes an existing electricity contract

## Path parameters

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

## Response `204`

Electricity contract deleted successfully

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Electricity 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)
