Multiple choice

Report a typo

We have the following folders structure:

Folder 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?

Select one option from the list
___

Create a free account to access the full topic