how to turn on debug logs for user in salesforce code example
Example: delete debug logs salesforce
SELECT Id, StartTime, LogUserId, LogLength, Location FROM ApexLog
SELECT Id, StartTime, LogUserId, LogLength, Location FROM ApexLog