Skip to main content

DELETE /api/recipes/[id]

Permanently deletes a recipe and all related data (images, tags, tagged users, comments, mentions, favorites, reposts, lightroom settings, saved items, notifications). Only the recipe owner can delete it. Returns image URLs for storage cleanup.
The client should show a confirmation modal before calling this endpoint.
Requires authentication. Owner only.

Response (200)

{
  "message": "Recipe deleted successfully"
}

Errors

StatusCodeReason
401UNAUTHORIZEDNot authenticated
403FORBIDDENNot the recipe owner
404NOT_FOUNDRecipe not found