Deletes a chat message.
185036
def chat_delete(self, room_id, msg_id, **kwargs):
        """"""
        return self.__call_api_post('chat.delete', roomId=room_id, msgId=msg_id, kwargs=kwargs)
1341278
public void removeMessage(String messageId) {
        Collection<ValidationMessage<Origin>> toRemove = new ArrayList<ValidationMessage<Origin>>();

        for (ValidationMessage<Origin> message : messages) {
            if (messageId.equals(message.getMessageKey())) {
                toRemove.add(message);
            }
        }
        messages.removeAll(toRemove);
    }
135502
function onDialogDelete() {
    if (confirm('Are you sure you want remove the dialog?')) {
        QB.chat.dialog.delete(currentDialog._id, function(err, res) {
            if (err) {
                console.error(err);
            } else {
                console.info('Dialog removed');

                updateUIWhenDeletedDialog(currentDialog._id);
            }
        });

        $("#update_dialog").modal("hide");
        $('#update_dialog .progress').show();
    }
}
408024
async def deleteMessage(self, msg_identifier):
        
        p = _strip(locals(), more=['msg_identifier'])
        p.update(_dismantle_message_identifier(msg_identifier))
        return await self._api_request('deleteMessage', _rectify(p))
627099
public function removeChat(\Sopinet\ChatBundle\Entity\Chat $chat)
    {
        if (!$this->chats->contains($chat)) {
            return;
        }
        $this->chats->removeElement($chat);
        $chat->removeChatMember($this);
    }
1351164
def _clear(self):
        """"""
        self._finished = False
        self._measurement = None
        self._message = None
        self._message_body = None
169412
def unsubscribe_from_chat(
        self,
        subscriber: Callable[[events.ChatMessageWasReceived], None],
    ) -> None:
        
        self._chat_subscribers.remove(subscriber)
791944
def clear_step_handler_by_chat_id(self, chat_id):
        
        self.next_step_handlers[chat_id] = []

        if self.next_step_saver is not None:
            self.next_step_saver.start_save_timer()
738712
def chat_delete(self, *, channel: str, ts: str, **kwargs) -> SlackResponse:
        
        kwargs.update({"channel": channel, "ts": ts})
        return self.api_call("chat.delete", json=kwargs)
308141
async def unpinChatMessage(self, chat_id):
        
        p = _strip(locals())
        return await self._api_request('unpinChatMessage', _rectify(p))
121138
public function clear($chatId, array $chat)
    {
        $params = [
            'chatid' => $chatId,
            'chat'   => $chat,
        ];

        return $this->parseJSON('json', [self::API_CLEAR_NOTIFY, $params]);
    }
1367376
def delete(self, request, bot_id, id, format=None):
        
        return super(MessengerBotDetail, self).delete(request, bot_id, id, format)
1199287
def clear(self, event, ts=None):
        
        return self.r.delete(self._keygen(event, ts))
1307203
def delete_message(self, msg_id, claim_id=None):
        
        return self._message_manager.delete(msg_id, claim_id=claim_id)
473327
@ObjectiveCName("deleteMessagesWithPeer:withRids:")
    public void deleteMessages(Peer peer, long[] rids) {
        modules.getMessagesModule().deleteMessages(peer, rids);
    }
589238
def inplace_delete_message(
        message_queue: List[SendMessageEvent],
        state_change: Union[ReceiveDelivered, ReceiveProcessed],
) -> None:
    
    for message in list(message_queue):
        message_found = (
            message.message_identifier == state_change.message_identifier and
            message.recipient == state_change.sender
        )
        if message_found:
            message_queue.remove(message)
1081504
def delete(self, event):
        """"""
        assert self.receiver_id == event.receiver_id
        event.response = {'status': 410, 'message': 'Gone.'}
        event.response_code = 410