To delete a local branch you need
git branch -d <branch_name>
where if you write [-d] it only deletes the branch if it has already been fully merged in its upstream branch or if you write [-D] it deletes the branch "irrespective of its merged status."
To delete a remote branch
git push -d <remote_name> <branchname>
and in most cases,
<remote_name> will be