The first question is how you got into it.
My guess: When you created the new project, you used "Save as", either for the project, or some of its units.
But "save as" can create links to the old/new folder, and the project then gets split. (In some cases, that is what people need, but it can screw things up).
First back up, all that you still have.
You may want to check, by default the IDE creates backup folders (in the project dir). Maybe there will be some of the data that you are missing. Use an external editor, so the IDE does not overwrite any backups.
Given that you deleted an entire folder, you may have deleted files that you needed. That may not be fixable.
To get new clean projects.
Either:
- Always use the menu: "project" > new project.
Any files (only pas or pp) you want to copy, do copy them outside the IDE.
- If you want to base it on an existing project: Use "project" > "publish project". And publish to a new folder. Then open the project from the new folder.
Never, use the "path" options in "Project options" (in case you don't know them, thats ok)