Index: openacs-4/packages/acs-kernel/sql/oracle/apm-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-kernel/sql/oracle/apm-create.sql,v
diff -u -N -r1.40 -r1.41
--- openacs-4/packages/acs-kernel/sql/oracle/apm-create.sql	17 Mar 2008 10:43:51 -0000	1.40
+++ openacs-4/packages/acs-kernel/sql/oracle/apm-create.sql	8 May 2008 02:25:04 -0000	1.41
@@ -1782,20 +1782,11 @@
     cursor all_site_nodes is
     	select node_id from site_nodes
 	where object_id = apm_package.del.package_id;
-    cursor all_folders is
-	select folder_id from cr_folders
-	where package_id = apm_package.del.package_id;
-
   begin
     -- Delete all parameters.
     for cur_val in all_values loop
     	apm_parameter_value.del(value_id => cur_val.value_id);
-    end loop;
-    -- Delete all folders.
-    for cur_val in all_folders loop
-        content_folder.del(cur_val.folder_id,'t');
-    end loop;
-
+    end loop;    
     delete from apm_applications where application_id = apm_package.del.package_id;
     delete from apm_services where service_id = apm_package.del.package_id;
     delete from apm_packages where package_id = apm_package.del.package_id;
