If running the command as the `dokku` user it would fail to delete the git repository as the repository is owned by `git:git`.