title: Delete a local development branch
body: <p>I have recently cloned a repo of our development code branch in my system:</p>
  
  <pre><code>git clone https://gitserver.com/product
  </code></pre>
  
  <p>After the clone was successful I get the below status on query:</p>
  
  <pre><code>$ git branch
  * develop
  </code></pre>
  
  <p>I realized that now this branch needs to be deleted, hence:</p>
  
  <pre><code>$ git checkout develop
  Already on 'develop'
  Your branch is up-to-date with 'origin/develop'.
  
  $ git branch -d develop
  error: Cannot delete branch 'develop' checked out at 'C:/work/test'
  </code></pre>
  
  <p>I am not sure whether we should try a GIT command or Unix command 'rm -rf' to delete a local develop branch repository? Lastly why no one can delete 'develop' branch. </p>