Created
December 20, 2012 04:45
-
-
Save brianpartridge/4343012 to your computer and use it in GitHub Desktop.
Dropbox - Unlink
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
import keychain | |
import os, sys | |
path, script = os.path.split(sys.argv[0]) | |
name, ext = os.path.splitext(script) | |
print "### %s ### " % name | |
SERVICE = 'dropbox' | |
keychain.delete_password(SERVICE, 'key') | |
keychain.delete_password(SERVICE, 'secret') | |
print "Removed access token." | |
print "### Done ###" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment