(message_ids: list, user_id: int)
Deletes the specified messages to the user
Deletes the specified messages to the user
Deletes the specified messages to the user
def delete_multiple_messages(message_ids: list, user_id: int):
        """ Deletes the specified messages to the user """
        Message.query.filter(
            Message.to_user_id == user_id, Message.id.in_(message_ids)
        ).delete(synchronize_session=False)
        db.session.commit()
def delete_multiple_messages ( message_ids : list , user_id : int ) : Message . query . filter ( Message . to_user_id == user_id , Message . id . in_ ( message_ids ) ) . delete ( synchronize_session = False ) db . session . commit ( )