# Cancel pending renewal (https://developer.godaddy.com/en/docs/references/rest/ans/cancel-server-certificate-renewal)

---
title: Cancel pending renewal
description: Cancels the pending server certificate renewal for this agent.
full: true
---

Full description

Cancels the pending server certificate renewal for this agent. Use when the submitted CSR was incorrect, to switch between CSR and BYOC paths, or to abandon the renewal. Removes the pending renewal and marks any associated CSR as REJECTED.

## DELETE /v1/agents/{agentId}/certificates/server/renewal

Cancel pending renewal

Cancels the pending server certificate renewal for this agent. Use when the submitted CSR was incorrect, to switch between CSR and BYOC paths, or to abandon the renewal. Removes the pending renewal and marks any associated CSR as REJECTED.

### Path parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `agentId` | string | yes | Unique identifier of the agent (UUID format) |

### Responses

**204** — Pending renewal successfully deleted

**401** — Authentication failed

Content-Type: `application/json`

Schema:

- schema reference: `#/components/schemas/ErrorResponse`

**403** — Authorization failed

Content-Type: `application/json`

Schema:

- schema reference: `#/components/schemas/ErrorResponse`

**404** — No pending renewal to delete

Content-Type: `application/json`

Schema:

- schema reference: `#/components/schemas/ErrorResponse`

**422** — Cannot delete (renewal already completed)

Content-Type: `application/json`

Schema:

- schema reference: `#/components/schemas/ErrorResponse`

**500** — Internal server error

Content-Type: `application/json`

Schema:

- schema reference: `#/components/schemas/ErrorResponse`
