Delete file with deprecated function