# Ehrbase: How to drop all data

**URL:** <https://discourse.openehr.org/t/ehrbase-how-to-drop-all-data/3227>\
**Category:** Platform\
**Tags:** ehrbase\
**Created:** [18 November 2022 13:16 UTC](https://discourse.openehr.org/t/ehrbase-how-to-drop-all-data/3227 "2022-11-18T13:16:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PietM](https://discourse.openehr.org/user_avatar/discourse.openehr.org/pietm/32/2357_2.png) [@PietM](https://discourse.openehr.org/u/PietM)\
**Post date:** [18 November 2022 13:16 UTC](https://discourse.openehr.org/t/ehrbase-how-to-drop-all-data/3227/1 "2022-11-18T13:16:14Z")

</div>

Hey guys,

I have a running installation of ehrbase and the underlying postgres via two docker images (ehrbase and ehrdb). This should be the default installation. How can I reset the the database, that is, delete all data and begin from a fresh installation?

Thanks!

---

<div class="post-metadata">

**Author:** ![ian.mcnicoll](https://discourse.openehr.org/user_avatar/discourse.openehr.org/ian.mcnicoll/32/4430_2.png) [@ian.mcnicoll](https://discourse.openehr.org/u/ian.mcnicoll)\
**Post date:** [18 November 2022 15:19 UTC](https://discourse.openehr.org/t/ehrbase-how-to-drop-all-data/3227/2 "2022-11-18T15:19:04Z")

</div>

I would normally just remove the docker containers and rebuild them. The only issue there is that you would remove uploaded templates as well as patient data.

Perhaps create a script to re-upload your templates via the API?
