---
updatedAt: 2025-05-19T20:48:42.000Z
agentTools:
  projectIndex: https://developers.happeo.com/llms.txt
---

# Delete a post

This is used to delete a post.

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "version": "0.0.4",
    "title": "Happeo Posts API",
    "x-happeo-owner": "Roxana Mirel <roxana.roman@happeo.com>",
    "description": "API to manage posts and articles.",
    "license": {
      "name": "UNLICENSED"
    },
    "termsOfService": "https://www.happeo.com/tos",
    "contact": {
      "name": "API Support",
      "email": "support@happeo.com"
    }
  },
  "servers": [
    {
      "url": "https://api.happeo.com",
      "description": "Production server"
    },
    {
      "url": "https://api.unvrs.io",
      "description": "Staging server"
    }
  ],
  "components": {
    "securitySchemes": {
      "headerAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-happeo-apikey",
        "description": "API key passed in the headers."
      }
    },
    "schemas": {
      "id": {
        "type": "string",
        "description": "The post id.",
        "example": "123213",
        "nullable": false
      }
    },
    "parameters": {
      "postId": {
        "name": "postId",
        "in": "path",
        "description": "A post id.",
        "required": true,
        "schema": {
          "$ref": "#/components/schemas/id"
        }
      }
    }
  },
  "security": [
    {
      "headerAuth": []
    }
  ],
  "paths": {
    "/posts/{postId}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/postId"
        }
      ],
      "delete": {
        "summary": "Delete a post",
        "description": "This is used to delete a post.",
        "operationId": "deletePost",
        "responses": {
          "204": {
            "description": "Successful deletion of a post."
          }
        },
        "tags": [
          "Posts"
        ]
      }
    }
  },
  "tags": [
    {
      "name": "Posts",
      "description": "Post related operations"
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```