One or more of the following conditions may exist in the environment:
Need to be able to remove this device completely.
NCM 10.1.X
If you encounter this issue in your environment, do the following:
su - pgdba
psql voyencedb voyence
select count(*),device_status from cm_device group by device_status;
select device_name,device_idx from cm_device where device_name like '%<deviceName>%';
\q
The following is an example of the output where the device called deviceName is still present in the database:
select count(*),device_status from cm_device group by device_status; voyencedb=# select count(*),device_status from cm_device group by device_status; count | device_status -------+-------------------------------- 1 | enum.deviceStatus.unclassified 154 | enum.deviceStatus.operational 3 | enum.deviceStatus.unconfigured select device_name,device_idx from cm_device where device_name like '%<deviceName>%'; voyencedb=# select device_name,device_idx from cm_device where device_name like '%deviceName%'; device_name | device_idx ----------------+------------ deviceName | 1104 (1 row)