---
updatedAt: 2025-09-14T23:46:08.000Z
agentTools:
  siteIndex: https://developer.jamf.com/llms.txt
  projectIndex: https://developer.jamf.com/jamf-pro/v11.14.0/llms.txt
---

# Flushes a single log for a given interval

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "11.12.0",
    "title": "Classic API",
    "license": {
      "name": "Jamf API License Agreement",
      "url": "https://developer.jamf.com/developer-guide/docs/api-license-agreement"
    }
  },
  "security": [
    {
      "basicAuth": []
    }
  ],
  "x-readme": {
    "samples-languages": [
      "curl",
      "swift",
      "ruby",
      "python"
    ],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "paths": {
    "/logflush/{log}/id/{id}/interval/{interval}": {
      "delete": {
        "tags": [
          "logflush"
        ],
        "summary": "Flushes a single log for a given interval",
        "operationId": "createLogFlushWithIdAndInterval",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID of policy whose log will be flushed",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "log",
            "in": "path",
            "required": true,
            "description": "At this time, only 'policy' logs are supported",
            "schema": {
              "type": "string",
              "enum": [
                "policy"
              ]
            }
          },
          {
            "name": "interval",
            "in": "path",
            "required": true,
            "description": "Supported values are a combination of [Zero, One, Two, Three, Six] and [Days, Weeks, Months, Years]. For example, JSSResource/logflush/policies/id/1/interval/Three+Months",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "x-si-base": "swagger.yaml",
  "x-github-repo": "jamf/Classic-API-Swagger-Specification",
  "x-github-sha": "070fac498a589aaa0958641a68e4065584fc244a",
  "servers": [
    {
      "url": "https://yourServer.jamfcloud.com/JSSResource"
    }
  ],
  "components": {
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  }
}
```