For DDEV v1.23.5 or above run
ddev add-on get iamntz/ddev-rename-projectFor earlier versions of DDEV run
ddev get iamntz/ddev-rename-projectddev rename-project my-new-projectThe 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.