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;
    }