Using SFDX:
COMMAND 1:
sfdx force:data:soql:query -q "SELECT Id FROM ApexLog" -r csv > apexlogs.csv
COMMAND 2:
sfdx force:data:bulk:delete -s ApexLog -f apexlogs.csv
Using Workbench:
Navigate to queries -> SOQL Query:
Select Bulk CSV and Input “Select id from ApexLog” to query Box then click Query.
Then download the CSV file by clicking on “download completed batch results” icon under Batches
Once you have the csv file: Navigate to data->delete. Then select from file, choose the downloaded file and click next.
Select Process records asynchronously via Bulk API and choose Object Type : ApexLog then click Confirm Delete. Done
No comments:
Post a Comment