Projects can be deleted from the project settings inside a project.
You can go to project settings (a gear like icon on the top right corner of the project plan page)--> General information→ Workflow management
You will find the ‘Delete project’ option here.
How to bulk delete projects?
This can be done by setting up a global automation.
You can set the condition as per your requirement of when you want the projects to be deleted.
For eg- If you want the project to be deleted if the project start date is more than 60 days ago then you can set it up in this way- ‘When project created’ should be the trigger, ‘project start date is more than 60 days ago’ is the condition and ‘delete project’ is the action.

FAQ
Can I Recover a Deleted Project?
No. Deleting a project is permanent and the project cannot be restored later. All project data is deleted and is no longer part of your reports and dashboards.
How Do I Restore an Archived Project?
Go to Settings > Archived projects, select the More actions icon next to the project, and select Unarchive. You need the Can view archived projects permission to see this page.
Who Can Delete or Archive a Project?
People with permission to delete the project. The Delete project and Archive project options do not appear in project settings for anyone else.
Can I Recover a Phase I Deleted From a Project?
No. A deleted phase cannot be restored, and deleting a phase also deletes all tasks in it. To add the phase back, create it again from the project plan, or import it again from the project template. An imported phase is a fresh copy from the template and does not include the progress, comments, or changes made in the deleted phase.