
In this article, we will discuss several methods to clear Skype chat history on Ubuntu. This can be useful for maintaining privacy or simply decluttering your chat interface. Please note that some of these methods may not completely remove the chat history or prevent Skype from reloading it from the internet. It’s always recommended to backup important data before attempting any changes.
To clear Skype chat history on Ubuntu, you can try disabling the history option in Skype settings, deleting the main.db file, backing up and removing the .Skype directory, renaming the Databases.db file (for skypeforlinux), deleting messages from the SQLite database, or deleting specific person’s messages from the SQLite database. It’s important to note that these methods may not completely remove the chat history or prevent Skype from reloading it from the internet. Always backup important data before attempting any changes.
Method 1: Disable History Option
The first method involves disabling the chat history option in Skype settings. Here are the steps:
- Open Skype and navigate to Options -> Privacy.
- Set “Keep chat history for..” to Disable History.
- Sign out and sign back in to apply the changes.
Note: This method may not work for everyone and may only prevent future recording of chat history.
Method 2: Delete main.db File
The second method involves deleting the main.db
file, which stores your chat history. Here’s how to do it:
- Open Terminal.
- Navigate to the directory
$HOME/.Skype/my_skype_name/
by typingcd $HOME/.Skype/my_skype_name/
. - Delete the file named
main.db
by typingrm main.db
. - Sign out and sign back in to apply the changes.
Note: This method may delete your chat history, recently contacted list, and contacts. Use with caution.
Method 3: Backup and Remove .Skype Directory
The third method involves backing up and removing the .Skype
directory. Here’s how to do it:
- Open Terminal.
- Create a backup of the .Skype directory by running the command
cp -r ~/.Skype ~/skype.bk
. This command copies the entire.Skype
directory to a backup directory namedskype.bk
in your home directory. - Remove the .Skype directory by running the command
rm -r ~/.Skype
. This command removes the entire.Skype
directory along with its contents.
Note: This method will only remove the local copy of the history, which may be restored by Skype upon sign-in.
Method 4: Rename Databases.db (for skypeforlinux)
The fourth method is specifically for skypeforlinux
users and involves renaming the Databases.db
file. Here’s how to do it:
- Quit the Skype application.
- Open Terminal.
- Navigate to the directory
~/.config/skypeforlinux/databases/
by typingcd ~/.config/skypeforlinux/databases/
. - Rename the file
Databases.db
by typingmv Databases.db Databases.db.bak
. - Restart Skype to apply the changes.
Method 5: Delete Messages from SQLite Database
The fifth method involves deleting all messages from the SQLite database. Here’s how to do it:
- Install
sqlite3
if not already installed by runningsudo apt-get install sqlite3
. This command installs thesqlite3
package which provides a command-line interface for managing SQLite databases. - Quit Skype to unlock the database.
- Open Terminal.
- Execute the command
sqlite3 ~/.Skype/[username]/main.db "delete from messages;"
. This command opens themain.db
SQLite database and deletes all records from themessages
table.
Note: This method may only delete the chat history on your local computer and may not prevent Skype from reloading it from the internet.
Method 6: Delete Specific Person’s Messages from SQLite Database
The sixth method involves deleting messages from a specific person. Here’s how to do it:
- Logout of Skype.
- Install
sqlite3
if not already installed by runningsudo apt-get install sqlite3
. - Open Terminal.
- Execute the command
sqlite3 ~/.Skype/[your-skype-username]/main.db "delete from messages where dialog_partner='nafis.ahmad';"
. This command opens themain.db
SQLite database and deletes all records from themessages
table where thedialog_partner
field is equal to ‘nafis.ahmad’.
Note: This method is specifically for deleting messages from a specific person.
In conclusion, there are several methods to clear Skype chat history on Ubuntu. Choose the method that best suits your needs and always remember to backup important data before making any changes.
While the methods mentioned in this article can help remove the chat history from your local computer, it may not prevent Skype from reloading it from the internet. Therefore, deleting the chat history completely may not be guaranteed.
Disabling the chat history option will prevent Skype from recording future chat history, but it may not remove the existing chat history that has already been recorded.