Possible to remove workflow from object with script?

Hi All,

I have class configured for files uploaded from Hubshare that automatically has a Workflow configured and assigns a task to admin to review and file the document correctly. 

Part of this filing would be to change the class to the correct type, after which my workflow is irrelevant. 

Is there any method that that I can use to remove the workflow from these documents when their class is changed? I've investigated some scripting, but to no avail.