PoShKeePass icon indicating copy to clipboard operation
PoShKeePass copied to clipboard

Remove-KeePassEntry does not delete properly

Open moochookaboo opened this issue 2 years ago • 0 comments

Currently running Keepass version 2.49. I have tried different variations of the following.

New-KeePassEntry -KeePassEntryGroupPath 'Database/Group/Subgroup' -Title 'test1' -UserName 'testuser' -Notes 'testnotes' -URL 'http://url.test.com' -DatabaseProfileName 'SampleProfile' -MasterKey 'Password'

$KeePassEntry = Get-KeePassEntry -KeePassEntryGroupPath 'Database/Group/Subgroup' -DatabaseProfileName 'SampleProfile' -MasterKey 'Password' | Where-Object { $_.Title -eq 'test1' }

Remove-KeePassEntry -KeePassEntry $KeePassEntry -DatabaseProfileName 'SampleProfile' -MasterKey 'Password' -Force

Upon running, a duplicate entry will get created in the recycling bin, but the original entry is not deleted.

moochookaboo avatar Nov 24 '21 20:11 moochookaboo