Create a function that empowers users to effortlessly delete all tasks with a single click. Craft a seamless user experience by implementing a function that enables users to delete all tasks with a single click, enhancing convenience and productivity while ensuring a smooth and intuitive interaction.