Add Delete file feature

Hi, I know, my code could be cleaner, but here is a "delete file" feature.