Skip to content
URL:
https://<root>/logs/clean
Methods:
POST
Version Introduced:
12.0

Description

The clean operation forces the server to clean the logs, freeing up disk space. However, it is not required that this operation be invoked, as the server will periodically purge old logs.

Request parameters

ParameterDetails

f

(Required)

The response format. The default response format is html.

Value: html | json | pjson

token

(Required)

Users interacting programmatically with this endpoint must generate a token that must be included as a request parameter. A token can be obtained using the Generate Token operation.

Example usage

The following is a sample POST request for the clean operation:

Use dark colors for code blocksCopy
1
2
3
4
5
6
POST /<context>/admin/logs/clean HTTP/1.1
Host: organization.example.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []

f=pjson

JSON Response example

Use dark colors for code blocksCopy
1
{"status": "success"}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.