Open it with a text editor -- notepad will work fine. Search for this: "<painted_shader" without the quotes. Highlite from that, the start of the painted shader, to the end "</painted_shader>" (again, without the quotes) and delete.
I'm doing this from memory since I'm running a render right now.