Skip to main content

delete_message

Function delete_message 

Source
pub async fn delete_message(
    http: &Client,
    base_url: &str,
    access_token: &str,
    message_id: &str,
) -> Result<(), ClientError>
Expand description

DELETE /me/messages/{id} — moves the message to Deleted Items. Same call works for drafts and for inbox messages; the destination folder differs only by what the user is currently in.