title: remove user from group Mac Os X (El Capitan)
body: <p>I'm trying to remove myself from the groups _developer and procmod where I accidentally added it with the following commands: </p>
  
  <pre><code>sudo dseditgroup -o edit -a marinos -t user _developer
  sudo dseditgroup -o edit -a marinos -t user procmod
  </code></pre>
  
  <p>when I <code>id</code> I get this: </p>
  
  <pre><code>uid=501(marinos) gid=20(staff) groups=20(staff),401(com.apple.sharepoint.group.1),9(procmod),12(everyone),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),98(_lpadmin),204(_developer),502(access_bpf),33(_appstore),100(_lpoperator),395(com.apple.access_ftp),398(com.apple.access_screensharing),399(com.apple.access_ssh)
  </code></pre>
  
  <p>to remove I've tried </p>
  
  <pre><code>sudo dscl . -delete /Groups/_developer GroupMembership marinos
  </code></pre>
  
  <p>and I get this error</p>
  
  <pre><code>&lt;main&gt; attribute status: eDSAttributeNotFound
  &lt;dscl_cmd&gt; DS Error: -14134 (eDSAttributeNotFound)
  </code></pre>
  
  <p>and this
      sudo dscl . -delete /Groups/procmod GroupMembership marinos
  which results in no error but does not remove me from the group - <code>id</code> returns the very same groups as before. </p>
  
  <p>I've also tried:</p>
  
  <pre><code>sudo dseditgroup -o edit -u marinos -d procomod user procmod
  </code></pre>
  
  <p>and I get </p>
  
  <pre><code>Group not found.
  </code></pre>
  
  <p>and this: </p>
  
  <pre><code>sudo dseditgroup -o edit -u marinos -d procmod user procmod
  </code></pre>
  
  <p>which results in no errors but has no effect either.. <code>id</code> still shows that I'm a member in all these groups.. </p>
  
  <p>please help... I'm desperate</p>