The easiest way to use prune is to provide it as an option when fetching:
git fetch --prune origin
Peform a prune and not fetch on the remote repository:
git remote prune origin
Configure Git to have prune executed with every fetch operation:
git config --global fetch.prune true