Git automatically deletes unreferenced objects eventually. Or you can trigger that immediately using git gc (“gc” for “garbage collection”).

/