Skip to content

Instantly share code, notes, and snippets.

@rjesh-git
Created October 27, 2015 17:10
Show Gist options
  • Save rjesh-git/de802950627fea7cf9bd to your computer and use it in GitHub Desktop.
Save rjesh-git/de802950627fea7cf9bd to your computer and use it in GitHub Desktop.
$rootWeb = $ctx.Web
$ctx.Load($rootWeb)
$caColl = $rootWeb.get_userCustomActions()
$ctx.Load($caColl)
$ctx.ExecuteQuery()
$caColl | ForEach-Object {
if ($_.title -eq 'Invoke GetItemsCount Action') {
$_.DeleteObject()
Write-Host 'Existing item deleted.'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment