Remove the given option

@param string $categoryKey Category key
@param string $optionKey   Option key

@throws InvalidArgumentException

@return void
12475
public function deleteOption($categoryKey, $optionKey)
    {
        $this->requireOptionExists($categoryKey, $optionKey);

        $this->optionModel->where(['category_key' => $categoryKey, 'key' => $optionKey])->delete();
        $this->refresh();
        unset($this->options[$categoryKey][$optionKey]);
    }
799877
public function removeCategory($category)
	{
		if (!is_string($category))
		{
			// @codeCoverageIgnoreStart
			throw new \LogicException('Category must be of a type "string"');
			// @codeCoverageIgnoreEnd
		}
		if (isset($this->categories[$category]))
		{
			unset($this->categories[$category]);
		}

		return $this;
	}
751858
public function remove($key, $autocommit = false)
    {
        unset($this->data[$key]);

        if ($autocommit) {
            $this->commit();
        }
    }
270771
public function removeKey($fileName, $key)
    {
        foreach ($this->languages() as $language) {
            $filePath = $this->path."/{$language}/{$fileName}.php";

            $fileContent = $this->getFileContent($filePath);

            Arr::forget($fileContent, $key);

            $this->writeFile($filePath, $fileContent);
        }
    }
1280228
public function DeleteCategoryPhoto($CategoryID = FALSE, $TransientKey = '') {
      // Check permission
      $this->Permission('Garden.Settings.Manage');
      
      $RedirectUrl = 'vanilla/settings/editcategory/'.$CategoryID;
      
      if (Gdn::Session()->ValidateTransientKey($TransientKey)) {
         // Do removal, set message, redirect
         $CategoryModel = new CategoryModel();
         $CategoryModel->SetField($CategoryID, 'Photo', NULL); 
         $this->InformMessage(T('Category photo has been deleted.'));
      }
      if ($this->_DeliveryType == DELIVERY_TYPE_ALL) {
          Redirect($RedirectUrl);
      } else {
         $this->ControllerName = 'Home';
         $this->View = 'FileNotFound';
         $this->RedirectUrl = Url($RedirectUrl);
         $this->Render();
      }
   }
1057831
@Override
	public void removeByC_COC(long CPDefinitionId, long CPOptionCategoryId) {
		for (CPDefinitionSpecificationOptionValue cpDefinitionSpecificationOptionValue : findByC_COC(
				CPDefinitionId, CPOptionCategoryId, QueryUtil.ALL_POS,
				QueryUtil.ALL_POS, null)) {
			remove(cpDefinitionSpecificationOptionValue);
		}
	}
752430
public void remove(PropertyKey key) {
    // remove is a nop if the key doesn't already exist
    if (mUserProps.containsKey(key)) {
      mUserProps.remove(key);
      mSources.remove(key);
    }
  }
789022
public function removeKey($key)
    {
        if (isset($this->values[$key])) {
            unset($this->values[$key]);
        }
        $this->stateChanged();
    }
904103
public function remove($key)
    {
        $keys = explode('.', $key);
        $section = &$this->items;

        while (count($keys) > 1) {
            $key = array_shift($keys);

            if (! isset($section[$key])) {
                return;
            }

            $section = &$section[$key];
        }

        unset($section[array_shift($keys)]);

        $this->notify();
    }
502941
public function remove($key = NULL)
    {
        $this->executeRemoveCommand();

        if( $key === NULL )
        {
            unlink($this->crontabCommands);
        }
        else
        {
            $this->removeJobFromExecFile($key);

            $this->executeCommand();
        }
    }
471374
public function delete($key)
	{
	    $this->validateKey($key);

		if (isset($this->items[$key])) {
			unset($this->items[$key]);
		} else {
			throw new InvalidKeyException("Collection key '".$key."' does not exist.");
		}
	}
31305
private function optionExists($categoryKey, $optionKey)
    {
        $this->requireCategoryExists($categoryKey);

        return array_key_exists($optionKey, $this->options[$categoryKey]);
    }
210094
public function removeOption( $key )
	{
		if( !$this->hasOption( $key ) )
			return FALSE;
		unset( $this->options[$key] );
		return TRUE;
	}
879482
public function remove(Category $category)
    {
        $category->term->delete();
        $category->delete();

        Alert::info(__('Category was removed'));

        return redirect()->route('platform.systems.category');
    }
702546
public function remove( $key )
    {
        if ( $key instanceof Interfaces\SeedLike )
        {
            $key = $key->getId();
        }

        if ( !Utility\Option::contains( $this->_bag, $key ) )
        {
            return false;
        }

        Utility\Option::remove( $this->_bag, $key );

        return true;
    }
544226
public function remove(string $key): void
    {
        if (isset($this->orgData[$key])) {
            if (isset($this->updateAttributes[$key])) {
                unset($this->updateAttributes[$key]);
            }
        } else {
            if (isset($this->addAttributes[$key])) {
                unset($this->addAttributes[$key]);
            }
        }
        $this->removeAttributes[$key] = 0;
    }
163025
public function RemoveLogo($TransientKey = '') {
      $Session = Gdn::Session();
      if ($Session->ValidateTransientKey($TransientKey) && $Session->CheckPermission('Garden.Settings.Manage')) {
         $Logo = C('Garden.Logo', '');
         RemoveFromConfig('Garden.Logo');
         @unlink(PATH_ROOT . DS . $Logo);
      }

      Redirect('/settings/banner');
   }