title: how to use cronjob in Octobercms?
body: <p>Lets suppose i want to delete record with id= 50 from my database with the help of cronjob in octobercms what are steps to do this</p>
  
  <p>i did following things to achieve this <br>
  <em>1)- In my plugin i put the following code</em></p>
  
  <pre><code>   public function registerSchedule($schedule)
  {
      $schedule-&gt;call(function() {
           DB::table('fsz_posting_tblposting')-&gt;where('id', '==', 50)-&gt;delete();
      }); // Defaults to every minute (every execution)
  }
  </code></pre>
  
  <p><em>2)- In my cronjob area of the server i put the following cronjob command</em></p>
  
  <pre><code>/usr/local/bin/php -q /home3/user/public_html/artisan scheduled:run
  </code></pre>
  
  <p>After doing these two steps my record is not deleted and i got the following email in my inbox</p>
  
  <p><strong>There are no commands defined in the "scheduled" namespace. 
    Did you mean this?<br>
        schedule</strong><br>
  what should i do now?</p>