DeleteFiles

EventNames:

  • DeleteFiles_Restrictions

  • DeleteFiles_Pre

  • DeleteFiles_Post

Parameters

Type

Name

Description

File[]

files (deletedFiles in POST)

The files which should be deleted or are already deleted.

bool

successful

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

Examples:
DeleteFiles_Restrictions:

Register-VaultEvent -EventName DeleteFiles_Restrictions -Action 'RestrictDeleteFiles'

function RestrictDeleteFiles($files) {
	#Write event code here
}

DeleteFiles_Pre:

Register-VaultEvent -EventName DeleteFiles_Pre -Action 'PreDeleteFiles'

function PreDeleteFiles($files) {
	#Write event code here
}

DeleteFiles_Post:

Register-VaultEvent -EventName DeleteFiles_Post -Action 'PostDeleteFiles'

function PostDeleteFiles($deletedFiles, $successful) {
	#Write event code here
}