. * */ // TODO: Allow admins to expire versions of any user // TODO: Provide feedback as to how many versions were deleted // Check user and app status OCP\JSON::checkLoggedIn(); OCP\App::checkAppEnabled('files_versions'); $versions = new OCA_Versions\Storage(); if( $versions->expireAll() ){ OCP\JSON::success(); die(); } else { OCP\JSON::error(); die(); }