updated delete file, still not sure if complete