ef="#delete-a-field" title="Permanent link">&para;</a></h3>
<p>Use the delete method to delete a field.</p>
<pre><code class="language-TypeScript">import { spfi } from &quot;@pnp/sp&quot;;
import &quot;@pnp/sp/webs&quot;;
import &quot;@pnp/sp/fields&quot;;

const sp = spfi(...);

await sp.web.fields.addBoolean(&quot;Temp Field&quot;, { Group: &quot;My Group&quot; });
await sp.web.fields.addBoolean(&quot;Temp Field 2&quot;, { Group: &quot;My Group&quot; });
await sp.web.lists.getByTitle(&quot;My List&quot;).