Cmdlets for Asana

Build 24.0.9060

Remove-Asana Cmdlet

Parameters   Output Objects  

Deletes Asana data.

Syntax

Remove-Asana [parameters]

Remarks

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) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060