Created
January 29, 2012 20:08
-
-
Save dive/1700407 to your computer and use it in GitHub Desktop.
open Skype DB with history and remove some items (Mac OS)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# shutdown Skype | |
# Skype username - it's a login at Skype | |
# Mac username - it's a short username of Mac OS X (ex.: dive) | |
# <...> should be entered without brackets <> | |
#copy this one, paste to Terminal.app and hit Enter | |
sqlite3 "$HOME/Library/Application Support/Skype/<your_skype_username>/main.db" | |
#then copy this one, paste to Terminal.app where sqlite3 running and hit Enter | |
delete from Messages where dialog_partner = '<delete_history_of_conversation_with_particurarly_username>'; | |
#done | |
#if you want to remove history with another username, just hit Up arrow and replace username |
This is my script, firstly close Skype, then all message in a conversation. You can adjust the sql query according to your purpose.
- Create a file and paste below content, save it with .sh extension
- Edit skype_login_name to yours, adjust the sql query according to your purpose then save the file
- Execute the script in terminal
SkypePid=$(pgrep Skype)
kill $SkypePid
sqlite3 "$HOME/Library/Application Support/Skype/<skype_login_name>/main.db" <<EOS
delete from main.messages where chatname = '19:83e9be70b7ec4202ae8c158527374401@thread.skype';
commit;
.exit
EOS
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ах да, я лох.