Created
October 11, 2013 16:44
-
-
Save thisirs/6938075 to your computer and use it in GitHub Desktop.
Get rid of empty directories in firefox bookmarks
This file contains hidden or 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
| -- Get rid of empty directories in firefox bookmarks | |
| DELETE FROM moz_bookmarks | |
| WHERE type = 2 | |
| AND id > 5 | |
| AND id NOT IN ( | |
| SELECT DISTINCT parent FROM moz_bookmarks) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment