Bugfix on 'delete_all' requests history

Fix bug when cleaning requests history. The total of requests to save are reset when a 'delete_all' command arrived.