Magnetic filter with semi-automatic cleaning