DeleteFolder

EventNames:

  • DeleteFolder_Restrictions

  • DeleteFolder_Pre

  • DeleteFolder_Post

Parameters

Type

Name

Description

Folder

folder (deletedFolder in POST)

The folder which should get / is deleted.

bool

successful

Post:
The information whether the Web Service call was successful or not is only available in Post events.

Examples:
DeleteFolder_Restrictions:

Register-VaultEvent -EventName DeleteFolder_Restrictions -Action 'RestrictDeleteFolder'

function RestrictDeleteFolder($folder) {
	#Write event code here
}

DeleteFolder_Pre:

Register-VaultEvent -EventName DeleteFolder_Pre -Action 'PreDeleteFolder'

function PreDeleteFolder($folder) {
	#Write event code here
}

DeleteFolder_Post:

Register-VaultEvent -EventName DeleteFolder_Post -Action 'PostDeleteFolder'

function PostDeleteFolder($deletedFolder, $successful) {
	#Write event code here
}