#!/usr/bin/env php uploadsCtx->uploads->deleteUploadsByUser($userId); printf('Done! Actual purging of data in storage will be handled by the next cron cycle.%s', PHP_EOL); } catch(Exception $ex) { printf('Exception occurred while trying to delete user uploads:%s', PHP_EOL); printf('%s%s', $ex->getMessage(), PHP_EOL); }