bulk move of folders

Is there way to do a “bulk” folder move for some desired housekeeping? Either IMAP or Local. In Local Folders I have a lot of nesting and want to grab, say 20-30 folders at once, and move them up one or two levels in one fell swoop.

All I seem to be able to do is move them one at a time. Neither Shift or ctrl lets me grab more than one at at time.

Can I maybe do this by editing the database? Probably risky?