# Collection Recreation Fails with 422: Class Already Exists – Need Help

**URL:** <https://forum.weaviate.io/t/collection-recreation-fails-with-422-class-already-exists-need-help/21488>\
**Category:** Support\
**Created:** [June 23, 2025, 3:47pm UTC](https://forum.weaviate.io/t/collection-recreation-fails-with-422-class-already-exists-need-help/21488 "2025-06-23T15:47:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rupa](https://avatars.discourse-cdn.com/v4/letter/r/51bf81/32.png) [@Rupa](https://forum.weaviate.io/u/Rupa)\
**Post date:** [June 23, 2025, 3:47pm UTC](https://forum.weaviate.io/t/collection-recreation-fails-with-422-class-already-exists-need-help/21488/1 "2025-06-23T15:47:21Z")

</div>

### Description

I’m encountering a persistent `UnexpectedStatusCodeError` when trying to create a collection in Weaviate:

“name”: “UnexpectedStatusCodeError”,  
“message”: “Collection may not have been created properly.! Unexpected status code: 422, with response body: {‘error’: [{‘message’: ‘class name Collection\_test\_test already exists’}]}”

This occurs even after attempting to delete the existing collection before recreating it.

### Server Setup Information

- Weaviate Server Version: `1.30.7`.
- Deployment Method: Docker Image
- Multi Node? - Running locally on my machine and Weaviate Cloud instance
- Client Language and Version: Python (v4 client)
- Multitenancy?: No

### Any additional Information

What I’ve Already Tried:

1. Tested with new collection names (same error occurs).
2. Upgraded Weaviate server from `1.29` to `1.30.7`.
3. Uninstalled and reinstalled the latest `weaviate-client` package.

Note:

Ensured logic deletes and recreates the collection:

if \_client.collections.exists(collection\_name):  
\_client.collections.delete(collection\_name)  
time.sleep(2)  
\_client.collections.create(collection\_name, …)  
else:  
\_client.collections.create(collection\_name, …)

The exact same logic \*\*worked fine until last Friday. Even if the collection name is entirely new and never used before, the error is still raised.

---

<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:** [June 24, 2025, 3:23pm UTC](https://forum.weaviate.io/t/collection-recreation-fails-with-422-class-already-exists-need-help/21488/2 "2025-06-24T15:23:44Z")

</div>

hi @Rupa !!

Welcome to our community 🤗

Do you see any error logs on server after you issue the delete collection command?

Thanks!
