Release schema lock programatically

Discussion created by clm42 on Jan 4, 2011
I there a way to force drop a scheme lock while a script is running? I have a shapefile used at the begining of a script but after about 20% complete I have loaded it into a geodatabase and am editing a feature layer of this new feature class. I dont need the shapefile again for that script but do things to the shapefile in another script and would like to get on with it as this first script takes a few hours to finish.