# Is it possible to assign a new class to the "data" of a deleted class?

**URL:** <https://forum.weaviate.io/t/is-it-possible-to-assign-a-new-class-to-the-data-of-a-deleted-class/1154>\
**Category:** Support\
**Created:** [December 28, 2023, 5:40pm UTC](https://forum.weaviate.io/t/is-it-possible-to-assign-a-new-class-to-the-data-of-a-deleted-class/1154 "2023-12-28T17:40:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![htbit1990](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/htbit1990/32/603_2.png) [@htbit1990](https://forum.weaviate.io/u/htbit1990)\
**Post date:** [December 28, 2023, 5:40pm UTC](https://forum.weaviate.io/t/is-it-possible-to-assign-a-new-class-to-the-data-of-a-deleted-class/1154/1 "2023-12-28T17:40:59Z")

</div>

I am a newbie using weaviate and just do some experimenting  
I have created a class with a name “WmoInfo”. I have loaded a bunch of documents using langchain and created a vectorstore with the following code:  
weaviate\_vectorstore = Weaviate.from\_documents(documents=texts,  
embedding=embedding,  
client=client,  
by\_text=False)  
after it is created I accidentally delete the “WmoInfo” class.  
I am using weaviate with a local docker container.  
I can see in the weaviate\_data volume still exists.  
see below screen shot:

 ![afbeelding](https://canada1.discourse-cdn.com/flex027/uploads/weaviate/original/1X/f3e23eb6f494dc63793fab66a4548b98ee29a944.png)  
Is it possible to create a new class (maybe with the same name) and assigned it to the vectorstore?  
Thanks

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [December 28, 2023, 5:53pm UTC](https://forum.weaviate.io/t/is-it-possible-to-assign-a-new-class-to-the-data-of-a-deleted-class/1154/2 "2023-12-28T17:53:13Z")

</div>

Hi!

When you delete a class, all data will be deleted too.

So if you create a new class, even with the same name, it will a brand new one.

Unless you backup and restore that data, you cannot restore it like that.

Let me know if that helps 🙂
