I have this code to delete all my files
echo "file named $file has been deleted successfully";
echo "file is not deleted";
$files are files that contain '.5010.' But everytime I run this it echos out file not deleted. It has full permission, Im not sure what Im missing.