Created
June 21, 2018 11:18
-
-
Save cygeorgel/7ef8382c634b7f8bf1065d26143a2a8b to your computer and use it in GitHub Desktop.
Remove files from Ovh Public Cloud Storage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// remove files from swift and swiftAlt | |
$disks = ['swift', 'swiftAlt']; | |
foreach ($disks as $disk) { | |
$files = Storage::disk($disk)->files('production/zoho/invoices'); | |
foreach($files as $file) { | |
Storage::disk($disk)->delete($file); | |
print $file . PHP_EOL; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment