Administer > Database Cleanup utility
Examples: Deleting objects
The following are examples of deleting user objects from the database tables using optional parameters from the Database Cleanup utility.
- ./dbclean.sh -object objectname -type objecttype -instancexml instancename -db dbname -commit commitrows -max maxrows -check_object_only yes
- dbclean -object objectname -type objecttype -instancexml instancename -db dbname -commit commitrows -max maxrows -check_object_only yes
- ./dbclean.sh -object objectname -type objecttype -instancexml instancename -db host:port:sid -commit commitrows -max maxrows -check_object_only yes -dbtype oracle -dbuser dbuser -dbpasswd dbpassword
- dbclean -object objectname -type objecttype -instancexml instancename -db host:port:sid -commit commitrows -max maxrows -check_object_only yes -dbtype oracle -dbuser dbuser -dbpasswd dbpassword
Here is the same example, with sample values (instead of variables):
- ./dbclean.sh -object user -type registered -instancexml WebSphere/WebSphereCommerce/instances/demo/xml/demo.xml -db CD040302 -commit 500 -max 8000 -check_object_only yes
- dbclean -object user -type registered -instancexml C:\WebSphere\WebSphereCommerce\instances\demo\xml\demo.xml -db CD040302 -check_object_only yes
- ./dbclean.sh -object user -type registered -instancexml WebSphere/WebSphereCommerce/instances/demo/xml/demo.xml db host:port:sid -commit 500 -max 8000 -check_object_only yes -dbtype oracle -dbuser johnsmith -dbpasswd mypasword
- dbclean -object objectname -type registered -instancexml C:\WebSphere\WebSphereCommerce\instances\demo\xml\demo.xml -db host:port:sid -commit 500 -max 8000 s-check_object_only yes -dbtype oracle -dbuser johnsmith -dbpasswd mypasword
If you are deleting a store, close the store first, before deleting it. The markfordelete flag is not supported. You must use the status flag (open/closed/suspended) first, and then use the markfordelete flag. It is the status flag that determines store access.
Related concepts
Related tasks
Configure databases for use with the staging utilities
Set the PATH environment variables for WebSphere Commerce utilities
Add a configuration to the Database Cleanup utility
Delete Sales Assistant statistic objects
Delete user traffic log objects
Delete available to promise inventory objects
Delete calculation code objects
Delete campaign statistic objects
Delete expected inventory record objects
Delete details about expected inventory record objects
Delete fulfillment center objects
Delete inventory code adjustment objects
Delete inventory adjustment objects
Delete specified item information objects
Delete member message relationship objects
Delete Product Advisor statistic objects
Delete Product Comparison statistic objects
Delete Product Explorer statistic objects
Delete calculation rule objects
Related reference
Database Cleanup utility objects