def delete_message(self, message):
message_id = message.object_id if isinstance(message,<EOL>Message) else message<EOL>if message_id is None:<EOL><INDENT>raise RuntimeError('<STR_LIT>')<EOL><DEDENT>url = self.build_url(<EOL>self._endpoints.get('<STR_LIT:message>').format(id=message_id))<EOL>response = self.con.delete(url)<EOL>return bool(response)<EOL>
Deletes a stored message

        :param message: message/message_id to delete
        :type message: Message or str
        :return: Success / Failure
        :rtype: bool