Public/MIA/Remove-MIATask.ps1

1
2
3
4
5
6
7
8
9
10
11
function Remove-MIATask
{
    [CmdletBinding()]
    param (
        [Parameter(Mandatory)]
        [string]$TaskId
    )

    $response = Invoke-MIARequest -Method 'Delete' -Resource "tasks/$TaskId"
    Write-Output $response
}