Fix deleting files