# Random Data deletion

**URL:** <https://forum.weaviate.io/t/random-data-deletion/337>\
**Category:** Support\
**Tags:** bug, developer-experience\
**Created:** [July 7, 2023, 10:37am UTC](https://forum.weaviate.io/t/random-data-deletion/337 "2023-07-07T10:37:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gautam](https://avatars.discourse-cdn.com/v4/letter/g/7ab992/32.png) [@Gautam](https://forum.weaviate.io/u/Gautam)\
**Post date:** [July 7, 2023, 10:37am UTC](https://forum.weaviate.io/t/random-data-deletion/337/1 "2023-07-07T10:37:04Z")

</div>

Hi all , i have been using text2vec model from weaviate by deploying it on azure using docker image i get from weaviate, the issue i am facing now for several time is that the **data i upload to this weaviate instance gets deleted even the schema also randomly after some time , i dont know if others are also facing this issue , but i need your help in knowing what can be the reason for this and the solution for the same**  
Thanks

---

<div class="post-metadata">

**Author:** ![jphwang](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/jphwang/32/38_2.png) [@jphwang](https://forum.weaviate.io/u/jphwang)\
**Post date:** [July 10, 2023, 9:05am UTC](https://forum.weaviate.io/t/random-data-deletion/337/2 "2023-07-10T09:05:48Z")

</div>

Hi Gautam 👋

You mentioned your data gets deleted randomly. Is it possible that the Docker config file doesn’t have data persistence set up?  
(See this page [Persistence | Weaviate - vector database](https://weaviate.io/developers/weaviate/configuration/persistence#docker-compose))

Thanks,  
JP

---

<div class="post-metadata">

**Author:** ![sebawita](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/sebawita/32/5_2.png) [@sebawita](https://forum.weaviate.io/u/sebawita)\
**Post date:** [February 15, 2024, 6:14pm UTC](https://forum.weaviate.io/t/random-data-deletion/337/3 "2024-02-15T18:14:09Z")

</div>

I suspect that you have somewhere in your code a line that deletes all schema:

```auto
client.schema.delete_all()

```

It is best to remove this, or comment out.

**background**  
We used this for some example projects, where we wanted to reset the database before each run. However, it is easy to miss that.

> Note, we are trying not to include that line anymore in our examples.
