def delete_accounts_user_group(self,user_group_id): url = "/accounts/user_groups/%s" % (user_group_id) headers = {'Authorization': self.token, 'Content-Type': "application/json", 'Accept': "application/vnd.mozy.bifrost+json;v=1"} request_url = ('%s%s' % (self.base_url, url)) response = RestfulHelper.send_delete(request_url, headers) return response
def delete_accounts_partner_id(self, id=""): url = ('/accounts/partner/%s' % (id)) headers = {'Authorization': self.token, 'Content-Type': "application/json", 'Accept': "application/vnd.mozy.bifrost+json;v=1"} request_url = ('%s%s' % (self.base_url, url)) print(request_url) response = RestfulHelper.send_delete(request_url, headers) print(response.text) return response