Remove the logo from config & delete it.

@since 2.0.0
@access public
@param string $TransientKey Security token.
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');
   }
1058889
public function remove($key) {
		if ($this->name === null) {
			throw new InvalidConfigException(get_class($this)." requires a name!");
		}
		if (!$this->getConnection()->getClient()->hdel($this->name,$key)) {
			return false;
		}
		$this->_data = null;
		$this->_count = null;
		return true;
	}
78101
public function delete($key)
	{
		// remove the expiration tracking for this key
		unset($this->data[static::EXPIRE_DATA_KEY][$key]);

		// and delete the key itself
		return parent::delete($this->prefixKey($key));
	}
504352
public function remove(string $key)
    {
        if (isset($_SESSION[$key])) {
            $_SESSION[$key] = '';
            unset($_SESSION[$key]);
        }
    }
157342
public function offsetUnset($key): void
    {
        assert(
            is_string($key),
            sprintf('Invalid metadata key: (%s) %s', gettype($key), VarPrinter::toString($key))
        );

        $this->remove($key);
    }
88692
function clear($key) {
		unset($this->fieldsCache[$key]);
		if (isset($this->fieldConf[$key]['relType']))
			$this->set($key,null);
		$this->mapper->clear($key);
	}
80770
public function clearKey($nsKey, $itemKey)
    {
        if ($this->hasKey($nsKey, $itemKey)) {
            $this->freeHandle($nsKey, $itemKey);
            unlink($this->path.'/'.$nsKey.'/'.$itemKey);
        }
    }
354822
public function remove(string $key): void
    {
        if (isset($this->data[$key])) {
            unset($this->data[$key]);
            
            $this->size--;
        }
    }
35063
public function Clear($ConversationID = FALSE, $TransientKey = '') {
      $Session = Gdn::Session();
      
      // Yes/No response
      $this->_DeliveryType = DELIVERY_TYPE_BOOL;
      
      $ValidID = (is_numeric($ConversationID) && $ConversationID > 0);
      $ValidSession = ($Session->UserID > 0 && $Session->ValidateTransientKey($TransientKey));
      
      if ($ValidID && $ValidSession) {
         // Clear it
         $this->ConversationModel->Clear($ConversationID, $Session->UserID);
         $this->InformMessage(T('The conversation has been cleared.'));
         $this->RedirectUrl = Url('/messages/all');
      }
      
      $this->Render();
   }
1126404
public function remove($key)
    {
        if ($this->resumeSession()) {
            if (isset($_SESSION) && array_key_exists($key, $_SESSION)) {
                unset($_SESSION[$key]);
            }
        }
    }
541895
public function SignOut($TransientKey = "") {
      $this->CheckOverride('SignOut', $this->Target(), $TransientKey);
      
      if (Gdn::Session()->ValidateTransientKey($TransientKey) || $this->Form->IsPostBack()) {
         $User = Gdn::Session()->User;
         
         $this->EventArguments['SignoutUser'] = $User;
         $this->FireEvent("BeforeSignOut");
         
         // Sign the user right out.
         Gdn::Session()->End();
         $this->SetData('SignedOut', TRUE);
         
         $this->EventArguments['SignoutUser'] = $User;
         $this->FireEvent("SignOut");
         
         $this->_SetRedirect();
      } elseif (!Gdn::Session()->IsValid())
         $this->_SetRedirect();
      
      $this->SetData('Target', $this->Target());
      $this->Leaving = FALSE;
      $this->Render();
   }
1107078
public function Dismiss($MessageID = '', $TransientKey = FALSE) {
      $Session = Gdn::Session();
      
      if ($TransientKey !== FALSE && $Session->ValidateTransientKey($TransientKey)) {
         $Prefs = $Session->GetPreference('DismissedMessages', array());
         $Prefs[] = $MessageID;
         $Session->SetPreference('DismissedMessages', $Prefs);
      }
      
      if ($this->_DeliveryType === DELIVERY_TYPE_ALL)
         Redirect(GetIncomingValue('Target', '/discussions'));

      $this->Render();      
   }
703891
public function remove($key) {
        $key = $this->getAbsoluteConfigKey($key);

        array_remove($this->config, $key);

        return $this;
    }
269811
public function remove($key)
    {
        $key = str_replace('_', '-', strtolower($key));

        unset($this->headers[$key]);

        if ('cache-control' === $key) {
            $this->cacheControl = array();
        }
    }
340242
public function remove($key)
    {
        $file=$this->getCacheDir().$key;
        if(file_exists($file))
            unlink($file);
    }
782967
public function Delete($ActivityID = '', $TransientKey = '') {
      $Session = Gdn::Session();
      if (!$Session->ValidateTransientKey($TransientKey))
         throw PermissionException();
      
      if (!is_numeric($ActivityID))
         throw Gdn_UserException('Invalid activity ID');
      
      
      $HasPermission = $Session->CheckPermission('Garden.Activity.Delete');
      if (!$HasPermission) {
         $Activity = $this->ActivityModel->GetID($ActivityID);
         if (!$Activity)
            throw NotFoundException('Activity');
         $HasPermission = $Activity['InsertUserID'] == $Session->UserID;
      }
      if (!$HasPermission)
         throw PermissionException();

      $this->ActivityModel->Delete($ActivityID);
      
      if ($this->_DeliveryType === DELIVERY_TYPE_ALL)
         Redirect(GetIncomingValue('Target', $this->SelfUrl));
      
      // Still here? Getting a 404.
      $this->ControllerName = 'Home';
      $this->View = 'FileNotFound';
      $this->Render();
   }
267782
public function remove($key): void
	{
		$this->cachedStorage->remove($key);
		$this->memoryStorage->remove($key);
	}