Remove directory in file component

What do you plug this module into? I have tried the ones shown below, but it crashes the app at this point in every case.

Works if plugged into evaluate module and recursive is false. This only removes an empty directory. Does anyone know how to remove a directory with contents?