dmsmgr fails to remove directory

Document ID : KB000103069
Last Modified Date : 22/06/2018
Show Technical Document Details
We want to recreate the Distribution Host - to first remove the existing DH we run:

dmsmgr -remove -dh DH__

but it is returning

Failed removing Policy Model directory.
Failed to remove DH

How to resolve this issue?
Make sure you are logged on as root (the user which installed the DS component) to run the
# dmsmgr -remove -dh DH__

Should it still fail to automatically delete the directory please execute these commands:
# secons -s
# rm -rf ..\CA\AccessControlServer\APMS\AccessControl\Data\DH_
(adjust the folder name accordingly to your specifics)

- the folder where pmdbs are stored in is specified in seos.ini

_pmd_directory_ = ...

Please delete the folder manually as indicated and recreate the DH accordingly afterwards.