remove the code attached to an object.
I don't get what you mean, I'm a bit of a noob here.
select your shape (by clicking on it with the selection tool) and check the actions panel. remove everything from the actions panel.
Now it says :
Operator '=' must be followed by an operand
Clip events are permitted only for movie clip instances
remove all your code.
From the frame on the timeline aswell?
if you have any valid code attached to a frame you can leave it but, my guess is you don't have any valid code. but if you don't want to remove code that might be serviceable, you can surround the code with a comment demarkation: