When you delete a project and re-use the same folder to re-create a project using the CLI, you face an error similar to:
[ProjectNotFoundException] Project not found: <PROJECT_ID> Either you do not have access to the project or it no longer exists.
When you use the Platform.sh CLI to create a project, the CLI creates a hidden folder to store its settings.
To be able to re-use the folder:
-
Delete the
.platform/local/
folder -
Run
project:set-remote
to map the folder to your project.