if not exists(SELECT 1 FROM T_META_ENTITY WHERE FID = '2+QE4JA9QV27')
DELETE FROM T_META_OBJECTTYPEREF WHERE FOBJECTTYPEID IN (SELECT FNUMBER FROM T_META_FORMDESIGN WHERE FBIZAPPID IN ('W11R1282DJK','14SL2L0H+OZM','14SP9N=406W2','217YZTTABIJI','217WYC/L9U7E')) ;

if not exists(SELECT 1 FROM T_META_ENTITY WHERE FID = '2+QE4JA9QV27')
DELETE FROM T_META_OBJECTTYPEREF WHERE fentityid IN (SELECT fid FROM T_META_FORMDESIGN WHERE FBIZAPPID IN ('W11R1282DJK','14SL2L0H+OZM','14SP9N=406W2','217YZTTABIJI','217WYC/L9U7E'));

if not exists(SELECT 1 FROM T_META_ENTITY WHERE FID = '2+QE4JA9QV27')
DELETE FROM T_META_MAINENTITYINFO_L WHERE FID IN (SELECT FID FROM T_META_MAINENTITYINFO WHERE FBIZAPPID IN ('W11R1282DJK','14SL2L0H+OZM','14SP9N=406W2','217YZTTABIJI','217WYC/L9U7E'));

if not exists(SELECT 1 FROM T_META_ENTITY WHERE FID = '2+QE4JA9QV27')
DELETE FROM T_META_MAINENTITYINFO WHERE FBIZAPPID IN ('W11R1282DJK','14SL2L0H+OZM','14SP9N=406W2','217YZTTABIJI','217WYC/L9U7E');

if not exists(SELECT 1 FROM T_META_ENTITY WHERE FID = '2+QE4JA9QV27')
DELETE FROM T_META_ENTITYINFO WHERE FID IN (SELECT FNUMBER FROM T_META_FORMDESIGN WHERE FBIZAPPID IN ('W11R1282DJK','14SL2L0H+OZM','14SP9N=406W2','217YZTTABIJI','217WYC/L9U7E'));

if not exists(SELECT 1 FROM T_META_ENTITY WHERE FID = '2+QE4JA9QV27')
DELETE FROM T_META_ENTITY WHERE FNUMBER IN (SELECT FNUMBER FROM T_META_FORMDESIGN WHERE FBIZAPPID IN ('W11R1282DJK','14SL2L0H+OZM','14SP9N=406W2','217YZTTABIJI','217WYC/L9U7E'));

if not exists(SELECT 1 FROM T_META_ENTITY WHERE FID = '2+QE4JA9QV27')
DELETE FROM T_META_FORM WHERE FNUMBER IN (SELECT FNUMBER FROM T_META_FORMDESIGN WHERE FBIZAPPID IN ('W11R1282DJK','14SL2L0H+OZM','14SP9N=406W2','217YZTTABIJI','217WYC/L9U7E'));

if not exists(SELECT 1 FROM T_META_ENTITY WHERE FID = '2+QE4JA9QV27')
DELETE FROM T_META_BIZUNITRELFORM WHERE FBIZAPPID IN ('W11R1282DJK','14SL2L0H+OZM','14SP9N=406W2','217YZTTABIJI','217WYC/L9U7E');

if not exists(SELECT 1 FROM T_META_ENTITY WHERE FID = '2+QE4JA9QV27')
DELETE FROM T_META_FORMDESIGN_L WHERE FID IN (SELECT FID FROM T_META_FORMDESIGN WHERE FBIZAPPID IN ('W11R1282DJK','14SL2L0H+OZM','14SP9N=406W2','217YZTTABIJI','217WYC/L9U7E'));

if not exists(SELECT 1 FROM T_META_ENTITY WHERE FID = '2+QE4JA9QV27')
DELETE FROM T_META_FORMDESIGN WHERE FBIZAPPID IN ('W11R1282DJK','14SL2L0H+OZM','14SP9N=406W2','217YZTTABIJI','217WYC/L9U7E');

if not exists(SELECT 1 FROM T_META_ENTITY WHERE FID = '2+QE4JA9QV27')
DELETE FROM T_META_ENTITYDESIGN_L WHERE FID IN (SELECT FID FROM T_META_ENTITYDESIGN WHERE FBIZAPPID IN ('W11R1282DJK','14SL2L0H+OZM','14SP9N=406W2','217YZTTABIJI','217WYC/L9U7E'));

if not exists(SELECT 1 FROM T_META_ENTITY WHERE FID = '2+QE4JA9QV27')
DELETE FROM T_META_ENTITYDESIGN WHERE FBIZAPPID IN ('W11R1282DJK','14SL2L0H+OZM','14SP9N=406W2','217YZTTABIJI','217WYC/L9U7E');
