-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcleanup.ps1
More file actions
31 lines (24 loc) · 988 Bytes
/
Copy pathcleanup.ps1
File metadata and controls
31 lines (24 loc) · 988 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
###########################################################
# Start - Initialization - Invocation, Logging etc
###########################################################
$VerbosePreference = "SilentlyContinue"
$ErrorActionPreference = "Stop"
$scriptPath = $MyInvocation.MyCommand.Path
$scriptDir = Split-Path $scriptPath
& "$scriptDir\..\scripts\init.ps1"
if(-not $?)
{
throw "Initialization failure."
}
###########################################################
# End - Initialization - Invocation, Logging etc
###########################################################
#Try to delete as much as we can
$ErrorActionPreference = "SilentlyContinue"
#Delete Project Resources
Remove-Item "$scriptDir\docdbgen\target" -Force -Recurse
Remove-Item "$scriptDir\eventgen\target" -Force -Recurse
Remove-Item "$scriptDir\iot\target" -Force -Recurse
Remove-Item "$scriptDir\iot\src\main\resources" -Force -Recurse
#Run Azure Cleanup
& "$scriptDir\..\scripts\cleanup.ps1" "$scriptDir"