Cmdlets for Apache CouchDB

Build 24.0.9060

Remove-ApacheCouchDB Cmdlet

Parameters   Output Objects  

Deletes Apache CouchDB data.

Syntax

Remove-ApacheCouchDB [parameters]

Remarks

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

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

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