backups()->exists()) { throw new Exception('This storage provider is being used by a backup.'); } $storageProvider->delete(); } }