If you remember, Installing SQL Server on Linux does not install SQL Server tools by default. You have to install it separately. The same way when you uninstall SQL Server, it won’t uninstall mssql-tools, you have to uninstall separately. In the previous blog post, we discuss how to uninstall mssql-server on Ubuntu System. Here, we will cover how to uninstall mssql-tools on the Ubuntu system.
Uninstall SQL Server Tools on Ubuntu
- Connect the system as a root user
Syntax: sudo -i
- Uninstall the mssql-tools now
Syntax: apt-get remove -y mssql-tools
- Remove the mssql-tools repository files:
Syntax: rm /etc/apt/sources.list.d/msprod.list
- Verify the the mssql-tools contains any file now
Syntax: dpkg -L mssql-tools
To figure out what all the files get installed by the mssql-tools package, you can follow the post – SQL Debian package details On Ubuntu System.