Skip to content

Instantly share code, notes, and snippets.

@cygeorgel
Created June 21, 2018 11:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cygeorgel/7ef8382c634b7f8bf1065d26143a2a8b to your computer and use it in GitHub Desktop.
Save cygeorgel/7ef8382c634b7f8bf1065d26143a2a8b to your computer and use it in GitHub Desktop.
Remove files from Ovh Public Cloud Storage
// 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