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

 

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

This solution can be applied, 

  • If you are unable to delete an application completely from the GUI   or
  • if the application was removed from the Console GUI or if the  triplets are deleted with the Delivery folder removed but with the entries remaining in the AIP Console Postgres database > AIP_NODE schema.

 

 

AIP Platform

Yes/No

CAST AIP 8.3 (tick) 

 

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

 

 

For the application_guid below, it usually can be seen in the console URL for application actions.

You can also get it from : AIP Console - Information - V2 - How to get an application GUID for an application AIP Console

  1. The below queries need to be run on the AIP Node Postgres Database > AIP_NODE schema.

    --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>'

     

  2. Restart the Console and Node services for them to be in sync.
  3. 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 # 42682

 

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

 

Have more questions? Submit a request

Comments

Powered by Zendesk