How to remove subfolder and keep files

Have a look in this thread:

[url]Moving files around via context menus]

The code you´re looking for might be this one:

@dirsonly @nofilenamequoting Copy MOVE FILE "{filepath$}\*" HERE Delete QUIET NORECYCLE

I´d strongly advise you to check it in some test folders first, because they contain a "dangerous"
Delete QUIET NORECYCLE, so your empty folders will be erased.