It’s perfectly safe to delete the folder .m2/repository as maven will re-download all the needed dependencies when needed except for your local projects. It there any other folder under .m2 taking space?
For your local projects, maven will complain about not finding them. In that case, you simply need to re-compile them and install them by running mvn clean install in each project folder. They will get uploaded to the repository.