---
title: "Remove post image"
method: PATCH
path: "/social-media/posts/remove/image/{postId}/{imageId}"
tags: ["📸 Social Media"]
---

# Remove post image

`PATCH /social-media/posts/remove/image/{postId}/{imageId}`

The API endpoint allows users to remove an individual image from a social media post.

When accessing this endpoint and specifying the post ID and image ID, the image associated with the post will be removed, reducing the total number of images in the post by one.

This functionality is particularly useful when users want to manage the images included in their posts and provides them with the flexibility to delete specific images from the post.

## Response `200`

Remove post image

- object
  - `data` object
    - `__v` number
    - `_id` string
    - `author` object
      - `__v` number
      - `_id` string
      - `account` object
        - `_id` string
        - `avatar` object
          - `_id` string
          - `localPath` string
          - `url` string
        - `email` string
        - `username` string
      - `bio` string
      - `countryCode` string
      - `coverImage` object
        - `_id` string
        - `localPath` string
        - `url` string
      - `createdAt` string
      - `dob` string
      - `firstName` string
      - `lastName` string
      - `location` string
      - `owner` string
      - `phoneNumber` string
      - `updatedAt` string
    - `comments` number
    - `content` string
    - `createdAt` string
    - `images` object[]
      - `_id` string
      - `localPath` string
      - `url` string
    - `isBookmarked` boolean
    - `isLiked` boolean
    - `likes` number
    - `tags` string[]
    - `updatedAt` string
  - `message` string
  - `statusCode` number
  - `success` boolean

---

[API](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi.md) · [All operations](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hiteshchoudhary-ssesph/freeapi/revisions/a9f3a290e4dc/schema)
