Purpose

The page describes the process to delete Enlighten diagrams

Applicable in CAST Version
Release
Yes/No
8.3.x (tick)
8.2.x (tick)
8.1.x (tick) 
8.0.x (tick) 
7.3.x(tick)
Applicable RDBMS
RDBMS
Yes/No
Oracle Server(error)
Microsoft SQL Server(error)
CSS2(tick)
CSS1(tick)
Details

Run the following query in PGAdmin:

(replace %Generated% by your enlighten blueprint name and <local_cast_db> by your local cast database name)
set schema '<local_cast_db>';
SET @LOOP_MOD = select IdMod, ModNam from Mod where Modnam LIKE
'%Generated%';
SET @CTN = 0;
SET @MAXCT = LINES(@LOOP_MOD);
WHILE @CTN < @MAXCT
BEGIN         
SET @modid  = @LOOP_MOD[@CTN][0];              
SET @modnam  = @LOOP_MOD[@CTN][1];              
PRINT 'Delete ModId: ' + CAST(@modid AS STRING) + ' ' + @modnam;              
SELECT mod_free (@modid, 1, '@modnam');              
SET @CTN = @CTN + 1;
END
Notes/comments

In pgAdmin, you need to run it using the command “Execute pgScript” instead of execute query