---
updatedAt: 2026-04-21T09:18:36.000Z
agentTools:
  projectIndex: https://docs.yespo.io/llms.txt
---

# Delete events

The method is used for deleting events occurred during selected period.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "yespo.io",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://yespo.io"
    }
  ],
  "security": [
    {
      "basicAuth": []
    }
  ],
  "tags": [
    {
      "name": "Events"
    }
  ],
  "paths": {
    "/api/v1/past_events": {
      "delete": {
        "tags": [
          "Events"
        ],
        "summary": "Delete events",
        "description": "The method is used for deleting events occurred during selected period.",
        "operationId": "removeHistoryEvents",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Period"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": ""
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Period": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "description": "Start date (inclusively).",
            "example": "2023-08-14T10:25"
          },
          "to": {
            "type": "string",
            "description": "End date (inclusively).",
            "example": "2023-10-12T12:33"
          }
        }
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  }
}
```