title: how to delete int object in django
body: <p>After filtering and updating I have to delete the objscts, How to solve the isuue,</p>
  <p><strong>AttributeError: 'int' object has no attribute 'delete'</strong></p>
  <pre><code> def handle(self, *args, **options):
         trees.objects.filter(old=True).update(new=False).delete()
  </code></pre>
  <p>My objective is to first filte all the old trees as True and new as False then updating I have to delete all the object list.</p>