---
title: "Unlike a post"
method: DELETE
path: "/posts/{postId}/likes"
tags: ["Likes"]
---

# Unlike a post

`DELETE /posts/{postId}/likes`

Remove your like from a post if you change your mind

## Path parameters

- `postId` string, uuid, required

## Response `204`

Like removed successfully

## Other responses

- `404` — Resource not found
- `500` — Internal server error

## Changes

- **2026-07-17** `41c89b420e85` — 3 breaking, 1 warning
  - added the new path request parameter `postId`
  - the `details` response's property type changed from `object` to `array` for status `404`
  - the `details` response's property type changed from `object` to `array` for status `500`
  - deleted the `query` request parameter `username`
- **2025-05-30** `2775bd09f55e` — 1 breaking, 1 warning, 5 info
  - added the new required `query` request parameter `username`
  - deleted the `path` request parameter `postId`
  - removed the non-success response with the status `400`
  - added the optional property `details` to the response with the `404` status
  - …3 more
- **2025-05-30** `dbaf42ae4311` — 3 breaking, 2 warning, 1 info
  - for the `path` request parameter `postId`, the type changed from `string` to `integer`, and format from `uuid` to no format
  - removed the required property `error` from the response with the `404` status
  - removed the required property `error` from the response with the `500` status
  - removed the optional property `details` from the response with the `404` status
  - …2 more

[Change history](https://skmtc.dev/azure/apis/simple-social-media-api/changes/posts/:postId/likes/delete.md)

---

[API](https://skmtc.dev/azure/apis/simple-social-media-api.md) · [All operations](https://skmtc.dev/azure/apis/simple-social-media-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/simple-social-media-api/revisions/41c89b420e85/schema)
