Here we report on the development of novel polyimide-based flexible magnetic actuators for improving hydrocephalus shunts. The static and dynamic mechanical responses of the thin-film magnetic microdevices were quantitatively measured. The bacteria-removing capabilities of the microfabricated devices were also evaluated. Although additional evaluations are necessary, the preliminary results show promising potential for combatting bacteria-induced biofouling. Lastly, the thin-film microdevices are integrated into a single-pore silicone catheter to demonstrate a proof-of-concept, MEMS-enabled self-clearing, smart catheter.