forked from pnp/cli-microsoft365
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the 'flow remove' command solving pnp#1063
- Loading branch information
1 parent
89ac4fa
commit 629d783
Showing
6 changed files
with
711 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# flow remove | ||
|
||
Removes the specified Microsoft Flow | ||
|
||
## Usage | ||
|
||
```sh | ||
flow remove [options] | ||
``` | ||
|
||
## Options | ||
|
||
Option|Description | ||
------|----------- | ||
`--help`|output usage information | ||
`-n, --name <name>`|The name of the Microsoft Flow to remove | ||
`-e, --environment <environment>`|The name of the environment to which the Flow belongs | ||
`--asAdmin`|Set, to remove the Flow as admin | ||
`--confirm`|Don't prompt for confirmation | ||
`-o, --output [output]`|Output type. `json|text`. Default `text` | ||
`--verbose`|Runs command with verbose logging | ||
`--debug`|Runs command with debug logging | ||
|
||
## Remarks | ||
|
||
By default, the command will try to remove a Microsoft Flow you own. If you want to remove a Flow owned by another user, use the `asAdmin` flag. | ||
|
||
If the environment with the name you specified doesn't exist, you will get the `Access to the environment 'xyz' is denied.` error. | ||
|
||
If the Microsoft Flow with the name you specified doesn't exist, you will get the `Error: Resource 'abc' does not exist in environment 'xyz'` error. | ||
|
||
## Examples | ||
|
||
Removes the specified Microsoft Flow owned by the currently signed-in user | ||
|
||
```sh | ||
flow remove --environment Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --name 3989cb59-ce1a-4a5c-bb78-257c5c39381d | ||
``` | ||
|
||
Removes the specified Microsoft Flow owned by the currently signed-in user without confirmation | ||
|
||
```sh | ||
flow remove --environment Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --name 3989cb59-ce1a-4a5c-bb78-257c5c39381d --confirm | ||
``` | ||
|
||
Removes the specified Microsoft Flow owned by another user | ||
|
||
```sh | ||
flow remove --environment Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --name 3989cb59-ce1a-4a5c-bb78-257c5c39381d --asAdmin | ||
``` | ||
|
||
Removes the specified Microsoft Flow owned by another user without confirmation | ||
|
||
```sh | ||
flow remove --environment Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --name 3989cb59-ce1a-4a5c-bb78-257c5c39381d --asAdmin --confirm | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.