/home/techb158/immovalet.com/platform/plugins/backup/src/Commands
Edit: /home/techb158/immovalet.com/platform/plugins/backup/src/Commands/BackupRemoveCommand.php (1611B)
backup = $backup;
}
/**
* Execute the console command.
* @throws Exception
*/
public function handle()
{
try {
$backup = $this->argument('backup');
if (!File::isDirectory($this->backup->getBackupPath($backup))) {
$this->error('Cannot found backup folder!');
return 1;
}
if (!$this->confirmToProceed('Are you sure you want to permanently delete?', true)) {
return 1;
}
$this->backup->deleteFolderBackup($this->backup->getBackupPath($backup));
$this->info('Remove a backup successfully!');
} catch (Exception $exception) {
$this->error($exception->getMessage());
}
return 0;
}
}