webmail » delete(profile,id)
Description
This command instructs Nexial to delete the email from the inbox
specified in the profile
. The id
represents the “email id” to be deleted.
This “email id” is determined during the
search(var,profile,searchCriteria,duration)
command.
Parameters
- profile - the webmail profile which specifies the settings like
inbox
,provider
etc. - id - the
id
of the email to be deleted.
Example
Consider the following example script which deletes the email read earlier.
Script: