DeleteFolder
EventNames:
DeleteFolder_Restrictions
DeleteFolder_Pre
DeleteFolder_Post
Parameters
Type |
Name |
Description |
---|---|---|
folder (deletedFolder in POST) |
The folder which should get / is deleted. |
|
bool |
successful |
Post: |
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
}