For DDEV v1.23.5 or above run
ddev add-on get iamntz/ddev-rename-project
For earlier versions of DDEV run
ddev get iamntz/ddev-rename-project
ddev rename-project my-new-project
The command will create a new DB snapshot, it will remove your current project, will create a new project and finally it will import the newly created DB snapshot.