Delete all bookmarks in

I did a comparison of social bookmarking sites recently (in Thai) when I was making a decision which one to use. There was no one totally matches my requirement. For example is good but there's no restore feature. is also very good and simple to use but in term of managing the bookmarks and tags, it is not quite as good. You cannot delete all bookmarks, all private tags for example. You cannot manage your private tags at all through the web interfaces. gave me error when importing and didn't import it at all (they said they will in 24 hours but nothing happened). In fact I got this message after 2 days "Your access to has been terminated as a result of serious misuse of the service." Tried log out and the message was still there. I guess it has something to do with IP of the NAT router of my ISP.

Anyway I finally decided to go with since the interface is simple and I can completely restore the bookmarks backuped by the site. You can also manage your private tags and bookmarks using the API. I also found one undocumented API to delete your tags (<your tag name>) which is what I needed. Don't understand why they do not put it up there. I also wrote a little php script to simply delete all my bookmarks. I believe that there should be a better way to do this. This is like a brute force kind of thing but I didn't know how to do it otherwise. What I did was basically get all bookmarks from and then get all the links into an array and one by one execute an API to delete it. Don't forget to change the username and password and also the time taken to do this. This will depend on how many bookmarks you have. Also I cannot seem to delete some links with & and ?. It would be nice if someone could recommend me the easier way to do this.


//This is a quick and simple but not so fool-proof php file to delete all my bookmark on
//Some of the complex with a lot of & and ? in the url cannot be deleted. I still cannot find a way
//to do this. Been played around with urlencode with no luck. So the rest I will have to delete it

function Parse ($bookmark) {
//Get all posts into $content string variable and strip off all links into $links array
preg_match_all("'href=[\'\"](.*?)[\'\"]'si", $content, $output);
$links = $output[1];

foreach($links as $link) {


$j= count($links);
$k= count($remained);

$mystr= "Total of ".$n." links from ".count($links)." were deleted.";
return $mystr;

$total=Parse ("");
echo $total;

Popular posts from this blog

Make keyboard on PC behave like Mac

Put on your blog

Scuttle Bookmark