HF RL Explorer

Task: Delete Files Matching a Regex Pattern in Node.js

Task: Delete Files Matching a Regex Pattern in Node.js: a task in Terminal-Lego-15k (Harbor dataset). Write a Node.js script that deletes all files in a specified directory that match a given regular expression pattern. The script should cleanly handle the file matching and deletion process.

The task

Write a Node.js script that deletes all files in a specified directory that match a given regular expression pattern. The script should cleanly handle the file matching and deletion process.

Part of PrimeIntellect/Terminal-Lego-15k.