delete from maxapps where app='<APPLICATION NAME>';
delete from maxpresentation where app='<APPLICATION NAME>';
delete from sigoption where app='<APPLICATION NAME>';
delete from applicationauth where app='<APPLICATION NAME>';
delete from maxlabels where app='<APPLICATION NAME>';
delete from maxmenu where moduleapp='<APPLICATION NAME>' and menutype !='MODULE';
delete from maxmenu where moduleapp='<APPLICATION NAME>' and elementtype='APP' and keyvalue='<APPLICATION NAME>';
delete from appdoctype where app= '<APPLICATION NAME>';
commit;