delete old file template stuff