Devices suitable for insertion into a hollow anatomical structure within a patient for the purpose of ablating tissue within or surrounding the hollow structure so as to induce occlusion of the hollow structure are provided. The devices are in the form of guidewires with functional tips, that comprise at least one heating module, at their distal ends. The devices of the invention are suitable for occluding hollow anatomical structures selected from vasculature or from non-vascular ducts and tubes, via percutaneous, laparoscopic or endoscopic routes of access. Methods of using the devices in the treatment of patients are also described.