Cmdlets for Asana

Build 21.0.7930

Remove-Asana Cmdlet

Parameters   Output Objects  

Deletes Asana data.


Remove-Asana [parameters]


The Remove-Asana cmdlet allows you to use a syntax similar to SQL DELETE statements to delete Asana data.

$conn = Connect-Asana -InitiateoAuth "GETANDREFRESH" -OAuthClientId "YourClientId" -OAuthClientSecret "YourClientSecret" -CallbackURL "http://localhost:33333"
Remove-Asana -Connection $conn -Table "projects" -Id "1128092964672848"
The Where parameter can also be used to specify the primary key:
Remove-Asana -Connection $conn -Table "exTablePowershell;" -Where "Id = 1128092964672848"
The primary key can also be passed to the cmdlet along the pipeline:
Select-Asana -Connection $conn -Table projects -Where "Archived = 'true'" | Remove-Asana

Copyright (c) 2021 CData Software, Inc. - All rights reserved.
Build 21.0.7930