code: def remove_bookmark(request, id):
      
      bookmark = get_object_or_404(Bookmark, id=id, user=request.user)
      if request.method == "POST":
          bookmark.delete()
          if not request.is_ajax():
              messages.success(request, 'Bookmark removed')
              if request.POST.get('next'):
                  return HttpResponseRedirect(request.POST.get('next'))
              return HttpResponse('Deleted')
          return render_to_response(
              'admin_tools/menu/add_bookmark_form.html',
              {
                  'url': request.POST.get('next'),
                  'title': '**title**'  # replaced on the javascript side
              }
          )
      return render_to_response(
          'admin_tools/menu/delete_confirm.html',
          {'bookmark': bookmark, 'title': 'Delete Bookmark'}
      )
docs: This view deletes a bookmark.
      If requested via ajax it also returns the add bookmark form to replace the
      drop bookmark form.