Index: trunk/ippToPsps/jython/cleanup.py
===================================================================
--- trunk/ippToPsps/jython/cleanup.py	(revision 32518)
+++ trunk/ippToPsps/jython/cleanup.py	(revision 32519)
@@ -13,4 +13,5 @@
 from batch import Batch
 from datastore import Datastore
+from dxlayer import DXLayer
 
 '''
@@ -58,4 +59,15 @@
         logger.infoPair("Remaining on datastore", "%d" % (len(datastoreIDs) - count))
     
+    if DELETEDXLAYER:
+        count = 0
+        for id in dxlayerIDs:
+    
+            if dxlayer.deleteBatch(id):
+                ippToPspsDb.updateDeletedDxlayer(id, 1)
+                count = count + 1
+
+        logger.infoPair("Removed from DXLayer", "%d" % count)
+        logger.infoPair("Remaining on DXLayer", "%d" % (len(dxlayerIDs) - count))
+    
 
 '''
@@ -78,4 +90,5 @@
 ippToPspsDb = IppToPspsDb(logger, configDoc)
 datastore = Datastore(logger, configDoc, ippToPspsDb)
+dxlayer = DXLayer(logger)
 
 DVOLABEL = configDoc.find("dvo/gpc1Label").text
