Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/miikorz/DailyNews/llms.txt

Use this file to discover all available pages before exploring further.

DELETE /feed/:id permanently removes a news feed item from MongoDB. The server uses findByIdAndDelete to atomically locate and remove the document. If the document existed and was deleted, the response carries HTTP 204 with a "Feed deleted successfully" confirmation string in data. If no document matches the provided id, the server returns 404 NOT_FOUND.

Endpoint

DELETE /feed/:id

Path Parameters

id
string
required
The MongoDB ObjectId of the feed item to delete (e.g. 664a1f2e8b3c2a001e4d7f01).

Response

data
string
The string "Feed deleted successfully" on a successful deletion.
error
null
Always null on a successful 204 response.

Example Request

curl -X DELETE http://localhost:3001/feed/664a1f2e8b3c2a001e4d7f01 \
  -H "Accept: application/json"

Example Response

{
  "data": "Feed deleted successfully",
  "error": null
}

Error Responses

404 — Feed item not found:
{
  "data": null,
  "error": {
    "code": "NOT_FOUND",
    "message": "Feed not found"
  }
}
500 — Unexpected server error:
{
  "data": null,
  "error": {
    "code": "INTERNAL_SERVER_ERROR",
    "message": "Unexpected error occurred"
  }
}

Status Codes

CodeMeaning
204Feed item deleted successfully
404No feed item exists with the provided ObjectId
500An unexpected server error occurred

Build docs developers (and LLMs) love