sample
turbot/flowpipe-samples/delete-mail-from-microsoft-office-365
Get Involved
Version
License
Delete Mail From Microsoft Office 365
Delete an email from a specified user's mailbox in Microsoft Office 365.
Installation
Download and install Flowpipe (https://flowpipe.io/downloads). Or use Brew:
brew tap turbot/tapbrew install flowpipeClone:
git clone https://github.com/turbot/flowpipe-samples.gitcd data_management/delete_mail_from_microsoft_office_365flowpipe mod installConnections
By default, the following environment variables will be used for authentication:
TEAMS_ACCESS_TOKEN
You can also create connection resources in configuration files:
vi ~/.flowpipe/config/teams.fpcconnection "teams" "default" { access_token = "<access_token>"}For more information on connections in Flowpipe, please see Managing Connections.
Usage
Run the pipeline and specify the user_id and message_id pipeline arguments:
flowpipe pipeline run delete_mail_from_microsoft_office_365 --arg user_id='<user_id>' --arg message_id='<message_id>'