Skip to Content
Menu
This question has been flagged
2 Replies
5408 Views

Hi,


I'm newbie to odoo.


I installed Odoo 16.0-20230608 (Community Edition) with demo data.

I would like to remove all demo data and start odoo from scratch.

How should I do?

Please help me.

Thanks and Regards,

Avatar
Discard
Author

Hi,

Thanks.

I just dropped odoo postgre database,  remaining odoo package on my system.
Then I reinstall the dabase.

It worked well.

Thanks a lot.
Regards, 
shigeru


Best Answer

Hi Shigeru, 

you cannot delete the demo data once inserted into the database.

However, the developers can remove the data by inserting the query. But, I am not suggesting this way coz this is not the proper way to wipe out the data. If you do this, you will face that when you install/upgrade a module, the module has come with demo data too.

Therefore, I suggest creating a new instance without demo data load instead of deleting these entries will be far more suitable for anyone.

If you have some data in this database that you don't want to enter manually in the new database, then I suggest following the below steps.
First, create a new instance.
Second, Install all the apps that were installed in the old one. (Go to apps and install all the apps)
Third, in the old instance, you can export the entries in CSV/XIs formates.
Forth, now remove the demo data entries and import that file to the new instance.

let me know If you need more help from me.

Avatar
Discard
Best Answer

Hi,

Either you can create a  new db and start from the scratch again as Harmit suggested or if there is some configurations and master data in the database and you need to keep them, you can try out this module, which clean up the transaction data:  https://apps.odoo.com/apps/modules/16.0/om_data_remove/

Thanks

Avatar
Discard