I have a Text file named as Utl.txt on my desktop. I wanted to delete it. Automate this process using File> DeleteFile component.
Let’s look at the steps:
1.Go to the Component Tool Box panel, click icon Utilities.
2.On Utilities category drop-down menu, click File and drag DeleteFile component onto the Designer Surface.
3.Double-click filepath data-In-port of DeleteFile component and enter the path of the file you wanted to delete.
4.Connect the Control In/Out ports between the components right from Start to End components.
5.Press F5 key to run the activity.