CAST Console - How to Delete an Application from AIP Console Databases

This page will help you to delete an application completely from AIP Console

if you are unable to do the same from the GUI

or

if the application was removed from the Console GUI/ triplets deleted

and

the Delivery folder is removed but the entries still remain in the AIP Console H2 Database.

 

 

AIP Platform

Yes/No

CAST AIP 8.3 (tick) 

 

AIP Console Version Yes/No
AIP Console 1.8.x  or greater (tick)

 

 

For the application_guid below, it usually can be seen in the console url for application actions, though you can also get it from the snapshot report as described in the documentation here:

Modern application onboarding - run the initial deep analysis

The below queries need to be run on the AIP Node H2 Database.

--query1
SELECT ANALYSIS_RESULT_GUID FROM ANALYSIS WHERE VERSION_GUID IN (SELECT GUID FROM VERSION WHERE APPLICATION_GUID = '<APPLICATION_GUID>')
--(GET THE GUID)

--query2
SELECT CONNECTION_PROFILE_GUID FROM APPLICATION WHERE GUID = '<APPLICATION_GUID>'
--(GET THE GUID)

DELETE FROM SNAPSHOT_INDICATORS
WHERE SNAPSHOT_GUID IN (SELECT GUID FROM SNAPSHOT WHERE APPLICATION_GUID = '<APPLICATION_GUID>')

DELETE FROM SNAPSHOT WHERE APPLICATION_GUID = '<APPLICATION_GUID>'

DELETE FROM ANALYSIS
WHERE VERSION_GUID IN (SELECT GUID FROM VERSION WHERE APPLICATION_GUID = '<APPLICATION_GUID>')

DELETE FROM ANALYSIS_RESULT WHERE
GUID = '<guid FROM query 1>'

DELETE FROM VERSION_OBJECTIVES
WHERE VERSION_GUID IN (SELECT GUID FROM VERSION WHERE APPLICATION_GUID = '<APPLICATION_GUID>')

DELETE FROM VERSION WHERE APPLICATION_GUID = '<APPLICATION_GUID>'

DELETE FROM EXTENSION WHERE APPLICATION_GUID = '<APPLICATION_GUID>'

DELETE FROM REF_FINDER_CONFIG WHERE APPLICATION_GUID = '<APPLICATION_GUID>'

DELETE FROM CONFIGURATION_CHANGELOG WHERE APPLICATION_GUID = '<APPLICATION_GUID>'

DELETE FROM APPLICATION_MAVEN_REPOSITORIES WHERE APPLICATION_GUID = '<APPLICATION_GUID>'

DELETE FROM APPLICATION WHERE GUID = '<APPLICATION_GUID>'

DELETE FROM CONNECTION_PROFILE
WHERE GUID = '<guid from query 2>'

To access your h2 DB, please follow the  steps in the document here - AIP Console - Information - How to Access Console and Node Databases then

  1. Restart the Console and Node services for them to be in sync.
  2. If the problem you are facing does not match any case listed in this page, report your problem to CAST Technical Support and provide the below Relevant input for CAST Technical Support to reproduce the issue.

 

Ticket # 34364

 

 

 

Have more questions? Submit a request

Comments

Powered by Zendesk