option('days'); $days = $daysOption !== null ? (int) $daysOption : $trashService->getRetentionDays(); if ($days <= 0) { $this->info('Retensi otomatis tong sampah dinonaktifkan (0 hari / mode manual). Tidak ada data yang dihapus.'); return Command::SUCCESS; } $this->info("Menjalankan pembersihan tong sampah dengan retensi: {$days} hari..."); $prunedCount = $trashService->pruneOldTrash($days); $this->info("Pembersihan selesai. {$prunedCount} record berhasil dihapus permanen dari sistem."); return Command::SUCCESS; } }