         DELETE FROM AM_API_RATINGS AMAR WHERE AMAR.API_ID = :OLD.API_ID;
         DELETE FROM AM_EXTERNAL_STORES AMES WHERE AMES.API_ID = :OLD.API_ID;
         DELETE FROM AM_API_SCOPES AMS WHERE AMS.API_ID = :OLD.API_ID;
-	DELETE FROM AM_API_PRODUCT_MAPPING AAPM WHERE AAPM.API_ID = :OLD.API_ID;
-	DELETE FROM AM_API_CLIENT_CERTIFICATE AACC WHERE AACC.API_ID = :OLD.API_ID;
-	DELETE FROM AM_SECURITY_AUDIT_UUID_MAPPING ASAUM WHERE ASAUM.API_ID = :OLD.API_ID;
+        DELETE FROM AM_API_PRODUCT_MAPPING AAPM WHERE AAPM.API_ID = :OLD.API_ID;
+        DELETE FROM AM_API_CLIENT_CERTIFICATE AACC WHERE AACC.API_ID = :OLD.API_ID;
+        DELETE FROM AM_SECURITY_AUDIT_UUID_MAPPING ASAUM WHERE ASAUM.API_ID = :OLD.API_ID;
+        DELETE FROM AM_GRAPHQL_COMPLEXITY AGC WHERE AGC.API_ID = :OLD.API_ID;
       END;
 /
 CREATE OR REPLACE TRIGGER TRG_DEL_AM_API_URL_MAPPING

    PRIMARY KEY(URL_MAPPING_ID)
)
/
CREATE TABLE AM_SECURITY_AUDIT_UUID_MAPPING (
    API_ID INTEGER NOT NULL,
    AUDIT_UUID VARCHAR(255) NOT NULL,

    FOR EACH ROW
      BEGIN
        DELETE FROM AM_API_PRODUCT_MAPPING AAPM WHERE AAPM.URL_MAPPING_ID = :OLD.URL_MAPPING_ID;
        DELETE FROM AM_API_RESOURCE_SCOPE_MAPPING AARSM WHERE AARSM.URL_MAPPING_ID = :OLD.URL_MAPPING_ID;
      END;
/
CREATE or REPLACE TRIGGER TRG_DEL_AM_APPLICATION
