I would strongly recommend not removing packages like that.
If you just want to remove the icon from your app drawer/homescreen, there is a better way.
To hide any package icon, you just need to add NoDisplay=true to the bottom of the .desktop file for that package.
For the Advanced Network Configuration package, do this:
-
Copy
nm-connection-editor.desktopfrom/usr/share/applications/to~/.local/share/applications/using a file manager or using this command:cp /usr/share/applications/nm-connection-editor.desktop ~/.local/share/applications/ -
Open
nm-connection-editor.desktopin a text editor like gedit, and addNoDisplay=trueto the bottom of the file, or run this command:echo 'NoDisplay=true' >> ~/.local/share/applications/nm-connection-editor.desktop
You can do this to hide any package icon. The only thing you need to do is find the name of the .desktop file.