I use this solution to delete my binlog before I disable the log. After I disabled it, I tested the below commands to remove the remaining files, but without success.(The purpose of deleting is to save space.)
PURGE BINARY LOGS TO 'binlogname';
PURGE BINARY LOGS BEFORE 'datetimestamp';
My question is: Is it safe to remove them manually? (I found those questions question1 and question2 which are similar to mine but the answer is uncertain to me)
binlog.indexandbinlog.lastremains with size less than 1KB; Which I think they should remain, and there are no ways to eliminate them. – Niyaz Dec 03 '22 at 08:00