Delete existing Kik chat state
        ---
        responseMessages:
            - code: 401
              message: Not authenticated
482922
def delete(self, request, bot_id, id, format=None):
        
        return super(TelegramChatStateDetail, self).delete(request, bot_id, id, format)
140177
def get(self, request, bot_id, id, format=None):
                
        return super(KikChatStateDetail, self).get(request, bot_id, id, format)
791782
def delete_chat_photo(self, *args, **kwargs):
        """"""
        return delete_chat_photo(*args, **self._merge_overrides(**kwargs)).run()
658328
def leaveChat(self, chat_id):
        
        p = _strip(locals())
        return self._api_request('leaveChat', _rectify(p))
1065174
async def on_raw_401(self, message):
        
        nickname = message.params[1]

        # Remove nickname from whois requests if it involves one of ours.
        if nickname in self._pending['whois']:
            future = self._pending['whois'].pop(nickname)
            future.set_result(None)
            del self._whois_info[nickname]
848762
def destroy
      authentication = current_user.authentications.find_by(id: params[:id])
      authentication.destroy

      redirect_to authentications_path
    end
833868
def delete_devices(self, auth_body, devices):
        
        content = {
            "auth": auth_body,
            "devices": devices
        }
        return self._send("POST", "/delete_devices", content=content)
1308326
async def kickChatMember(self, chat_id, user_id,
                             until_date=None):
        
        p = _strip(locals())
        return await self._api_request('kickChatMember', _rectify(p))
213895
def remove(self, membership_id):
        
        path = '{}/remove'.format(membership_id)
        url = utils.urljoin(self.url, path)
        payload = {'membership_id': membership_id}
        response = self.session.post(url, json=payload)
        return response.ok
215973
async def deactivate(cls, access_key: str) -> dict:
        '''
        
        '''
        q = 'mutation($access_key: String!, $input: ModifyKeyPairInput!) {' + \
            '  modify_keypair(access_key: $access_key, props: $input) {' \
            '    ok msg' \
            '  }' \
            '}'
        variables = {
            'access_key': access_key,
            'input': {
                'is_active': False,
                'is_admin': None,
                'resource_policy': None,
                'rate_limit': None,
            },
        }
        rqst = Request(cls.session, 'POST', '/admin/graphql')
        rqst.set_json({
            'query': q,
            'variables': variables,
        })
        async with rqst.fetch() as resp:
            data = await resp.json()
            return data['modify_keypair']
665156
def unregisterSds(self, sdsObj):
        
        self.conn.connection._check_login()
        response = self.conn.connection._do_post("{}/{}{}/{}".format(self.conn.connection._api_url, "instances/Sds::", sdsObj.id, 'action/removeSds'))    
        return response
374797
def leave_chat(self, chat_id):
        
        result = apihelper.leave_chat(self.token, chat_id)
        return result
1010099
def rest_del(self, url, params=None, auth=None, verify=True, cert=None):
        
        res = requests.delete(url, params=params, auth=auth, verify=verify, cert=cert)
        return res.text, res.status_code
399473
def post(self, request, bot_id, format=None):
        
        return super(KikChatStateList, self).post(request, bot_id, format)
33108
def deleteChatPhoto(self, chat_id):
        
        p = _strip(locals())
        return self._api_request('deleteChatPhoto', _rectify(p))
1367376
def delete(self, request, bot_id, id, format=None):
        
        return super(MessengerBotDetail, self).delete(request, bot_id, id, format)
219714
def remove_perm(perm, user_or_group, forum=None):
    
    user, group = get_identity(user_or_group)
    perm = ForumPermission.objects.get(codename=perm)
    if user:
        UserForumPermission.objects.filter(
            forum=forum,
            permission=perm,
            user=user if not user.is_anonymous else None,
            anonymous_user=user.is_anonymous,
        ).delete()
    if group:
        GroupForumPermission.objects.filter(forum=forum, permission=perm, group=group).delete()