Issue with 'Restore Checkpoint' – File Not Deleted Properly

Hi, when I click ‘Restore Checkpoint’, it creates a file and its components. It deletes the components but not the file. Please fix this.