Skip to main content

flow recyclebinitem list

Lists all soft-deleted Power Automate flows within an environment

Usage

m365 flow recyclebinitem list [options]

Options

-e, --environmentName <environmentName>

The name of the environment.

-h, --help [help]

Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are options, examples, remarks, response, full. Default is options.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.

--verbose

Runs command with verbose logging.

--debug

Runs command with debug logging.

Remarks

warning

This command is based on an API that is currently in preview and is subject to change once the API reaches general availability.

info

To use this command, you must be a Global or Power Platform administrator.

A Power Automate flow is soft-deleted when:

  • It's a non-solution flow.
  • It's been deleted less than 21 days ago.

If the environment with the name you specified doesn't exist, you will get the Access to the environment 'xyz' is denied. error.

Examples

List all soft-deleted flows within a specific environment

m365 flow recyclebinitem list --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5

Response

[
{
"name": "26a9a283-af42-4c09-aa3e-60c3cc166b90",
"id": "/providers/Microsoft.ProcessSimple/environments/Default-d87a7535-dd31-4437-bfe1-95340acd55c5/flows/26a9a283-af42-4c09-aa3e-60c3cc166b90",
"type": "Microsoft.ProcessSimple/environments/flows",
"properties": {
"apiId": "/providers/Microsoft.PowerApps/apis/shared_logicflows",
"displayName": "Invoicing flow",
"state": "Deleted",
"createdTime": "2024-08-05T23:13:54Z",
"lastModifiedTime": "2024-08-05T23:14:00Z",
"flowSuspensionReason": "None",
"environment": {
"name": "Default-d87a7535-dd31-4437-bfe1-95340acd55c5",
"type": "Microsoft.ProcessSimple/environments",
"id": "/providers/Microsoft.ProcessSimple/environments/Default-d87a7535-dd31-4437-bfe1-95340acd55c5"
},
"definitionSummary": {
"triggers": [],
"actions": []
},
"creator": {
"tenantId": "a16e76a1-837f-4bf9-82dc-78874d18e434",
"objectId": "bd51c64d-c262-4184-ba3f-5361ea553820",
"userId": "bd51c64d-c262-4184-ba3f-5361ea553820",
"userType": "ActiveDirectory"
},
"flowFailureAlertSubscribed": false,
"isManaged": false,
"machineDescriptionData": {},
"flowOpenAiData": {
"isConsequential": false,
"isConsequentialFlagOverwritten": false
}
}
}
]
CTRL + M