Be careful with old answers and everything that deletes something if you don’t know what the result is.
I know it doesn’t help you but in case of a service like apparmor it is enough to stop and disable the service
systemctl stop apparmor
systemctl disable apparmor
I also had bad experience with the autoremove feature years ago but in the most cases it shouldn’t do any harm.
I hope the damage is not irreversible.