There are 2 ways of doing this.
This method, at the time of writing, does not call the delete function created in your Django models. If you have not created your own delete function, go ahead and use the above code.
rows = MyModel.objects.filter(expired=True) for r in rows: r.delete()
This method does call your own delete function. There is obviously a bit more overhead due to requesting the rows, and deleting each row manually. However, if you have your own delete function, you probably want to run it.