Remove-ApacheCouchDB Cmdlet
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