Deleting Matched Files

Learn how matched files can be deleted.

Let’s make the walk tool a little more useful by adding the ability to delete the files it finds. To do this, we’ll be adding another action to the tool and a new flag del of type bool, allowing the user to enable file deletion.

Get hands-on with 1200+ tech skills courses.