How do I delete a folder using the file system?

just as the title says
i heard it was possible but i couldnt find anything about this! :sob:

Which folder? The folder on your object list or the one in your project on your desktop?

i guess a folder on my desktop
deleting a folder using the file system events

but i just decided to recode the current system i had to make it work a different way lol