IMPROVED DOWNHOLE TOOL AND METHOD
A cleaning tool (1) for use in cleaning ferrous material from a wellbore has a magnetic cleaning functionality by provision of magnets (5) in an Halbach array on a downhole tool component of a workstring. The Halbach array may be an Halbach cylinder positioned on a mandrel wherein the magnetic field is external to the cylinder with substantially zero magnetic field within the tool.