Added the function to unregister all items.