Modify Spark element: clean spark after building