We can (and should) safely delete commented code because we have branches which track the evolution of features and random experiments that might someday be useful. So long as the branches exist, we can always recover that code we just deleted.
But there's not value in deleting old branches. They represent the history of a project's development and should be respected as such.