In my developer sandbox the Apex logs count has exceeded beyond its limit and there are more than 1 lakh records created in it. I want to mass delete them, but not able to do so.
I am using the windows machine, and tried running the below commands to achieve the same.
sfdx force:data:soql:query -q "SELECT Id FROM ApexLog" -r "csv" | out-file -encoding utf8 out.csv
sfdx force:data:bulk:delete -s ApexLog -f out.csv
But I am receiving an error in the console saying
ERROR running force:data:bulk:delete: InvalidBatch : Records not found
Can anybody please let me know what am I doing wrong, and whether this can be achieved by any other ways.