'Batch removing the second sheet from many excel sheets in R?

I have many excel sheets that I need to remove the second sheet before importing them. All files are .xlsx type in one folder and have same format. What kind of function should I use to achieve such?

Before removal, the 'remarks' sheet needs to be removed

1

Wanted outcome: deleted sheet 'remarks'. need to loop it through all files in the folder

2

Thanks for your help in advance



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source