A method of treating a subterranean formation penetrated by a wellbore, according to which a tool is fabricated of a material that breaks up or dissolves in the presence of a fluid and is inserted in the wellbore for performing a function in the wellbore. The fluid is then introduced to the tool to break up or dissolve portions of the tool and the remaining portions of the tool fall to the bottom of the well.