We have the following folders structure:
We want to delete the tests folder altogether, but the code doesn't work for some reason.
fs.rmdir('tests', (err) => {
if (err) {
throw new Error('Can not remove');
}
});
What is wrong with it?