nsapi/Remove-NetstorageFile.ps1
function Remove-NetstorageFile { Param( [Parameter(Mandatory=$true)] [string] $Path, [Parameter(Mandatory=$false)] [string] $AuthFile = "~/.akamai-cli/.netstorage/auth", [Parameter(Mandatory=$false)] [string] $Section = "default" ) $Action = "delete" $Body = '' try { $Result = Invoke-AkamaiNSAPIRequest -Path $Path -Action $Action -Body $Body -AuthFile $Authfile -Section $Section return $Result } catch { throw $_ } } |