You can delete unwanted Projects in the Project Explorer.
You can also right-click a Project to delete it:
You will receive a prompt asking you to confirm that you are going to permanently delete this Project and its associated files/Tasks:
There is no "undo" in SI 2017. Once deleted, there is no recovering these Projects unless you restore a backup of your SI 2017 server, or re-import the Project from a previous export.