Method for form sid cleanup