Skip to content

New command: spo eventreceiver remove #3307

@MathijsVerbeeck

Description

@MathijsVerbeeck

Usage

spo eventreceiver remove [options]

Description

This command will remove an event receiver from a list or web

Options

Option Description
-u, --webUrl <webUrl> The URL of the web of which to remove the event receiver.
--listTitle [listTitle] The title of the list of which to remove the event receiver, if the event receiver should be removed from a list. Specify either listTitle, listId or listUrl.
--listId [listId] The id of the list for which to remove the event receivers, if the event receiver should be removed from a list. Specify either listTitle, listId or listUrl.
--listUrl [listUrl] The url of the list for which to remove the event receiver, if the event receiver should be removed from a list. Specify either listTitle, listId or listUrl.
-n, --name [name] The name of the event receiver to remove. Specify --name or --id but not both.
-i, --id [id] The id of the event receiver to remove. Specify --name or --id but not both.
--scope [scope] The scope on which to retrieve the Event Receiver. Can be either "Site" or "Web". Defaults to "Web". Only applicable when not specifying any of the list properties
--confirm Don't prompt for confirmation

Additional Info

If the user refers to the event receiver by name and the API returns multiple matches, the command prints a list of found event receivers and their IDs and asks the user to select the event receiver by ID.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions