title: How to delete specific column value from db in yii2
body: <p>I want to delete updated value from db. Like if the notice is inserted of <strong>notice column</strong> in <strong>class table</strong> and I want to delete it. So what will be the query in yii2? Please help - </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>$model = Class::find()-&gt;where('id', $id)-&gt;one;
  $model-&gt;delete();</code></pre>
  </div>
  </div>
  </p>
  
  <p>Above query is for - </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>DELETE FROM class WHERE id = $id;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I want to write query like that in yii2 - </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>DELETE notice FROM class WHERE id = $id;</code></pre>
  </div>
  </div>
  </p>