Adds a method to cleanup all lines classes