Part of fix to delete file