---
title: "Delete vote and atomically decrement post count"
method: DELETE
path: "/posts/{postId}/votes/{voteId}"
---

# Delete vote and atomically decrement post count

`DELETE /posts/{postId}/votes/{voteId}`

## Request

- Base URL: `https://app.voteship.app/api/v1`
- URL: `https://app.voteship.app/api/v1/posts/{postId}/votes/{voteId}`
- Auth: HTTP bearer

## Path parameters

- `postId` string, required
- `voteId` string, required

## Response `204`

Delete vote and atomically decrement post count

## Other responses

- `400`: Validation error
- `401`: Secret API key required
- `404`: Entity not found in this project

---

[API](https://skmtc.dev/voteship/apis/voteship-api.md) · [All operations](https://skmtc.dev/voteship/apis/voteship-api/llms.txt) · [OpenAPI document](https://skmtc.dev/voteship/apis/voteship-api/revisions/51ab9e650f82?raw)
