Deleting a folder

Emerson's icon

Does anyone know of a function to delete a folder?

pdelges's icon

One modern and portable way is to use Node.js. Have a look in the Extras -> Node For Max Overview -> File System.
It should work in js too.
Or there is this, in Java.
And probably many other solutions…

Source Audio's icon

shell and then rmdir on Mac or RD on windows

Emerson's icon

Thank you @PDELGES and @SOURCE AUDIO. I'm already using the NodeJS solution; a C API function was what I was looking for. (Windows RemoveDirectory() from "fileapi.h" cannot be used).
Meanwhile, J. Bernstein informed in the facebook group that no API function for that was made available.