Cmdlets for Cloudant

Build 24.0.8963

Remove-Cloudant Cmdlet

Parameters   Output Objects  

Deletes Cloudant data.

Syntax

Remove-Cloudant [parameters]

Remarks

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

$conn = Connect-Cloudant -User 'abc123' -Password 'abcdef'
Remove-Cloudant -Connection $conn -Table "Movies" -Id "70f6284d2a395396dbb3a60b4ce3d2d6"
The Where parameter can also be used to specify the primary key:
Remove-Cloudant -Connection $conn -Table "exTablePowershell;" -Where "Id = 70f6284d2a395396dbb3a60b4ce3d2d6"
The primary key can also be passed to the cmdlet along the pipeline:
Select-Cloudant -Connection $conn -Table Movies -Where "MovieRating = 'R'" | Remove-Cloudant

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