I can't understand the error
The problem with root is that you remove all safety belts from you phone. At the moment it is hard to tell what exactly happened but my guess it that you deleted something else than you think you deleted.

Rooting your phone is for very advanced users (I'm personally long term Android user and I never rooted my phone because I think it is not safe).

My suggestion is: re-flash your phone with original firmware and stop using root. In 99.9% of use cases you don't need it.