In CA PAM the cspm database contains the target accounts, servers and applications defined in the appliance.Whenever an object is deleted in the Credential Management part of the product, the corresponding records in the associated database tables are updated so that the delete field is set to 1, meaning the object is no longer valid.
In general when a target account is deleted and marked as such, the corresponding associations to target server and target applications should as well be marked as deleted by setting the corresponding field in their tables. Conversely, when an application is deleted from the Credential Management GUI all objects dependent solely on it should be marked as deleted.
The situation shown in the introduction may arise if an application was marked as deleted, but the corresponding target accounts failed to update their deleted fields accordingly