import del from 'del'; del(['**/*.txt']);
import del from 'del'; del(['dist/**']);
import del from 'del'; del(['path/to/file.txt']);
import del from 'del'; del(['path/to/file.txt', 'path/to/directory']);In all these examples, the del function takes an array of globs as an argument, which specifies the files and directories you want to remove. Del is a popular Node.js package, with over 8 million weekly downloads on npm. It's a powerful and fast way to delete files and directories in your Node.js applications.