code: protected function removeBlockFromSlotFile(array $options, $targetDir = null)
      {
          $targetDir = $this->workDirectory($targetDir);
  
          $slot = $this->getSlotDefinition($targetDir);
          $blockName = $options["blockname"];
  
          $tmp = array_flip($slot["blocks"]);
          unset($tmp[$blockName]);
          $slot["blocks"] = array_keys($tmp);
  
          $this->saveSlotDefinition($targetDir, $slot);
  
          return $blockName;
      }
docs: Removes a block from the slot files and returns back the block name
  
  @param array $options
  @param string $targetDir
  
  @return string