'Unpublish from hub.erpnext.com'

def unpublish(self):

    response = requests.post((self.hub_url + u'/api/method/hub.hub.api.unpublish'), data={u'access_token': self.access_token})
    response.raise_for_status()
