Considering just clicking on a folder, and choosing "delete", cannot cause the problem you describe, I suspect something else has gone wrong.
Either way, Rockbox does not in any way interact with iTunes, so if iTunes is giving you error messages you should probably seek help from Apple.