Skip to content

Commit cad349b

Browse files
Add functionality to empty trash in Google storage after backup cleanup
1 parent 0d64116 commit cad349b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/Console/Commands/SimpedeBackup.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace App\Console\Commands;
44

55
use Illuminate\Console\Command;
6+
use Illuminate\Support\Facades\Storage;
67

78
class SimpedeBackup extends Command
89
{
@@ -29,5 +30,6 @@ public function handle()
2930
$this->call('queue:clear');
3031
$this->call('backup:run');
3132
$this->call('backup:clean');
33+
Storage::disk('google')->getAdapter()->emptyTrash([]);
3234
}
3335
}

0 commit comments

Comments
 (0)