title: How to remove a Automated Device Enrollment profile from macOS
body: <p>First, show the profiles I have.</p>
  <pre><code>sudo profiles show -type enrollment
  </code></pre>
  <p>Second，remove all the profiles</p>
  <pre><code>sudo profiles remove -all 
  </code></pre>
  <p>An error occurs:</p>
  <pre><code>profiles: There are profiles installed that marked non-removable
  </code></pre>