DeleteFiles
EventNames:
DeleteFiles_Restrictions
DeleteFiles_Pre
DeleteFiles_Post
Parameters
Type |
Name |
Description |
---|---|---|
files (deletedFiles in POST) |
The files which should be deleted or are already deleted. |
|
bool |
successful |
Post: |
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
}