<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;
use Mtc\MercuryDataModels\SeoRedirect;

class PurgeSeoRedirects extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'purge:seo-redirects';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Remove SEO redirects from a sites database';

    /**
     * Execute the console command.
     */
    public function handle()
    {
        SeoRedirect::query()->truncate();
        return self::SUCCESS;
    }
}
