RocketChat / RocketChat/Rocket.Chat
When trying to create a team with the name of a deleted one, it says that name already exists
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 46.1k
- Forks
- 13.9k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 130
Description
Description:
When you create a team with the same name as a previously deleted one, it will say that the name already exists.
Steps to reproduce:
- Create a team, noting the name.
- Delete that channel.
- Create another team with the same name that was noted.
Expected behavior:
The team gets created.
Actual behavior:

Server Setup Information:
- Version of Rocket.Chat Server: 3.13.2
- Operating System: Ubuntu
- Deployment Method: snap
- Number of Running Instances: 1
- NodeJS Version: v12.21.0
- MongoDB Version: 3.6.14 / wiredTiger (oplog Enabled)
Client Setup Information
- Browser Version: Brave v1.24.86
- Operating System: Windows 10
Relevant logs:
As odd as this may seem, there is nothing logged when this occurs.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the team deletion and recreation flow using the steps in the issue, then trace the team creation and name-validation entry points. Done means a deleted team's name can be reused and the behavior is covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100