Create a schema archive, copy projects that ended before 2024-06-01 into archive.old_projects, then delete them from projects.
archive
archive.old_projects
projects
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.