Cmdlets for Freshdesk

Build 24.0.9060

Remove-FreshDesk Cmdlet

Parameters   Output Objects  

Deletes Freshdesk data.

Syntax

Remove-FreshDesk [parameters]

Remarks

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

$conn = Connect-FreshDesk -Domain "MyDomain" -APIKey "myAPIKey"
Remove-FreshDesk -Connection $conn -Table "Tickets" -Id "6"
The Where parameter can also be used to specify the primary key:
Remove-FreshDesk -Connection $conn -Table "exTablePowershell;" -Where "Id = 6"
The primary key can also be passed to the cmdlet along the pipeline:
Select-FreshDesk -Connection $conn -Table Tickets -Where "Status = '2'" | Remove-FreshDesk

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060