3 namespace BookStack\Console\Commands;
5 use BookStack\Activity\Models\Activity;
6 use Illuminate\Console\Command;
8 class ClearActivityCommand extends Command
11 * The name and signature of the console command.
15 protected $signature = 'bookstack:clear-activity';
18 * The console command description.
22 protected $description = 'Clear user (audit-log) activity from the system';
25 * Execute the console command.
27 public function handle(): int
29 Activity::query()->truncate();
30 $this->comment('System activity cleared');