public function process()
 {
     $sources = $this->getProperty('sources');
     if (empty($sources)) {
         return $this->failure($this->modx->lexicon('source_err_ns'));
     }
     $sourceIds = explode(',', $sources);
     foreach ($sourceIds as $sourceId) {
         /** @var modMediaSource $source */
         $this->source = $this->modx->getObject('sources.modMediaSource', $sourceId);
         if (empty($this->source)) {
             continue;
         }
         if ($this->source->get('id') == 1) {
             continue;
         }
         if (!$this->source->checkPolicy('remove')) {
             continue;
         }
         if ($this->source->remove() == false) {
             $this->modx->log(modX::LOG_LEVEL_ERROR, $this->modx->lexicon('source_err_remove'));
             continue;
         }
         $this->logManagerAction();
     }
     return $this->success();
 }