Fonte oficial no Laravel
AttributeIlluminate\Queue\Attributes\DeleteWhenMissingModels

#[DeleteWhenMissingModels]

Marque o job para exclusão se os modelos não existirem.

Disponível desde

Laravel 13.0

Aplicável em

class

Parâmetros

Nenhum parâmetro obrigatório ou opcional.

Uso prático

use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\Attributes\DeleteWhenMissingModels;

#[DeleteWhenMissingModels]
class ProcessInvoice implements ShouldQueue
{
    public function handle(): void
    {
        //...
    }
}