Guarding deleting files for raspberrypi