I installed rstudio on my system, but I don't need it now. It has created its own user. Whenever I turn my system on, two users appear on the screen. This has happened only after installing rstudio. I don't want rstudio and its user as well.
I successfully uninstalled rstudio by sudo apt-get purge rstudio
.
Still the login page is showing two users. Then I logged in to the second "rstudio" user and opened its terminal.
When I used deluser
command there, I got this error.
rstudio@ubuntu-Vostro-15-3568:~$ sudo deluser
rstudio is not in the sudoers file. This incident will be reported.
Please help me to delete this user.
Use
sudo apt-get purge r-base
.This works like
apt remove
but also deletes configuration files.After that, issue the following commands:
sudo deluser --remove-all-files rstudio
sudo deluser --group --remove-all-files rstudio
This will remove the system user created by the installer, which is not automatically removed by the uninstaller.
Thank you so much everyone for your efforts. I was putting username when I was asked for user. I checked the command that I used to add the user. ie.
sudo adduser rstudio
As I was putting the user"name" in the command, it wasn't working. I simply usedsudo deluser rstudio
and I got this!Removing user 'rstudio' ... Warning: group 'rstudio' has no more members. Done.
Now everything is fine. :)