model:prune

Prune models that are no longer needed

Options

  • chunk - The number of models to retrieve per chunk of models to be deleted Optional
  • except - Class names of the models to be excluded from pruning Optional
  • model - Class names of the models to be pruned Optional
  • path - Absolute path(s) to directories where models are located Optional
  • pretend - Display the number of prunable records found instead of deleting them Optional
php artisan model:prune [--model [MODEL]] [--except [EXCEPT]] [--path [PATH]] [--chunk [CHUNK]] [--pretend]