gogol-gmail-0.0.1: Google Gmail SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Gmail.Users.Messages.Delete

Contents

Description

Immediately and permanently deletes the specified message. This operation cannot be undone. Prefer messages.trash instead.

See: Gmail API Reference for gmail.users.messages.delete.

Synopsis

REST Resource

type UsersMessagesDeleteResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("messages" :> (Capture "id" Text :> (QueryParam "alt" AltJSON :> Delete `[JSON]` ())))))) Source

A resource alias for gmail.users.messages.delete method which the UsersMessagesDelete request conforms to.

Creating a Request

usersMessagesDelete Source

Arguments

:: Text

umdId

-> Text 
-> UsersMessagesDelete 

Creates a value of UsersMessagesDelete with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data UsersMessagesDelete Source

Immediately and permanently deletes the specified message. This operation cannot be undone. Prefer messages.trash instead.

See: usersMessagesDelete smart constructor.

Request Lenses

umdUserId :: Lens' UsersMessagesDelete Text Source

The user's email address. The special value me can be used to indicate the authenticated user.

umdId :: Lens' UsersMessagesDelete Text Source

The ID of the message to delete.