URL: v3/api/delete-logs

Method: DELETE

Description : Deletes logs by category

Parameters:

Parameter Type Optional/Required Description
categories array Required Array of logs that has to be deleted.

Following are the keys : mail, cron, exception.

For eg. [ ‘cron’, ‘exception’] for deleting cron-logs and exception logs

delete_before string Optional The time before all logs should be deleted
delete_after string Optional The time after which all logs should be deleted

 

Response:

{

"success":true,

"Message":"deleted successfully"

}

 

Tagged: