Delete the display group.

@return bool
421132
public function delete()
    {
        $this->getLogger()->info('Deleting Display Group ID ' . $this->displayGroupId);
        $this->doDelete('/displaygroup/' . $this->displayGroupId);

        return true;
    }
972667
public function removeGroup(GroupInterface $group)
	{
		if ($this->inGroup($group))
		{
			$this->groups()->detach($group);
			$this->invalidateUserGroupsCache();
			$this->invalidateMergedPermissionsCache();
		}

		return true;
	}
1123008
def delete(config, group, force):
        """"""
        if not force:
            if not click.confirm(
                    'Confirm that you want to delete group {}'.format(group)):
                sys.exit("Deletion of {} aborted".format(group))

        client = Client()
        client.prepare_connection()
        group_api = API(client)
        group_api.delete(group)
1163370
public function delete()
    {
        $return = false;
        if (isset($this->tokenId)) {
            $return = $this->apiCall->delete(
                $this->endpoint.'/delete',
                array('tokenId'=>$this->tokenId)
            );
        }
        return $return;
    }
572467
public static function deleteAll($group = NULL)
	{
		$result = FALSE;
		try {
			!self::classExists() or $result = self::instance($group)->delete_all();
		} catch (Cache_Exception $e) {
			self::exception($e);
		}

		return $result;
	}
180015
public static function delete($key, $group = NULL)
	{
		$result = FALSE;
		try {
			!self::classExists() or $result = self::instance($group)->delete($key);
		} catch (Cache_Exception $e) {
			self::exception($e);
		}

		return $result;
	}
295368
public function closeGroup()
    {
        // Get the last added name from the groupStack and
        // remove it from the array.
        $name = array_pop($this->groupStack);

        // Get the last added options to the groupOptions
        // This way we can check if error blocks were enabled
        $options = array_pop($this->groupOptions);

        // Check to see if we are to include the formatted help block
        if ($this->errorBlockEnabled($options)) {
            // Get the formatted errors for this form group.
            $errors = $this->getFormattedErrors($name);
        }

        // Append the errors to the group and close it out.
        return $errors . '</div>';
    }
1135247
public function remove(GroupInterface $group)
    {
        $this->em->remove($group);
        $this->em->flush();
        return true;

    }
1364015
public function closeGroup()
    {
        // Get the last added name from the groupStack and
        // remove it from the array.
        $name = array_pop($this->groupStack);
        // Get the formatted errors for this form group.
        $errors = $this->getFormattedErrors($name);

        // Append the errors to the group and close it out.
        return $errors . '</div>';
    }
64457
private function adminDeleteGroup()
    {
        $id = arg('group_delete', 'int');
        /* @var Gallery_Entity_Table_Group $table */
        $table = ORM::getTable($this, 'Group');
        $group = $table->find($id);
        $table->delete($group);

        HTTP::goback();
    }
1265396
public function deleteGroup($code) {
        $groupId = $this->getGroupId($code);
        if (empty($groupId)) {
            return false;
        }

        $group = new \CGroup;
        $group->Delete($groupId);
        return true;
    }
870074
protected function _clearCacheGroup()
    {
        $cacheGroups = (array) $this->getConfig('groups');
        foreach ($cacheGroups as $group) {
            Cache::clearGroup($group, $this->getConfig('config'));
        }
    }
976862
public function endGroup() {
        $out = '';
        while ($this->_states->is('panel')) { // panels were not closed
            $out .= $this->end();
        }
        $out .= $this->formatTemplate('panelGroupEnd', []);
        $this->_states->pop();
        return $out;
    }
1202220
public boolean remove() {
		try {
			if(!isBinary)return getJedisCommands(groupName).del(key) == 1;
			if(isCluster(groupName)){
				return getBinaryJedisClusterCommands(groupName).del(keyBytes) == 1;
			}
			return getBinaryJedisCommands(groupName).del(keyBytes) == 1;
		} finally {
			getJedisProvider(groupName).release();
		}
	}
1171602
public function delete()
    {
        if (!$this->isNew()) {
            $this->_collection->remove(['_id' => $this->_id]);
            $this->_cache->delete(static::getCollection()."_{$this->_id}");
            return true;
        }
        return false;
    }
719829
public function delete_custom_group(){
    global $wpdb;

    //checking the nonce
    check_admin_referer('delete_custom_group');

    if( isset($_GET['custom_group_id']) ){
      $id = (int)$_GET['custom_group_id'];
      if( is_int($id) ){
        $group = $this->get_group($id);
        $sql = $wpdb->prepare( "DELETE FROM ".MF_TABLE_CUSTOM_GROUPS." WHERE id = %d",$id );
        $wpdb->query($sql);

        $sql_fields = $wpdb->prepare( "DELETE FROM ".MF_TABLE_CUSTOM_FIELDS." WHERE custom_group_id = %d",$id );
        $wpdb->query($sql_fields);

        //ToDo: poner mensaje de que se borro correctamente
        $this->mf_redirect('mf_custom_fields','fields_list',array('message' => 'success','post_type' => $group['post_type']));

      }
    }
  }
711138
function remove($id, $group = 'default', $checkbeforeunlink = false)
    {
        $this->_setFileName($id, $group);
        if ($this->_memoryCaching) {
            if (isset($this->_memoryCachingArray[$this->_file])) {
                unset($this->_memoryCachingArray[$this->_file]);
                $this->_memoryCachingCounter = $this->_memoryCachingCounter - 1;
            }
            if ($this->_onlyMemoryCaching) {
                return true;
            }
        }
        if ( $checkbeforeunlink ) {
            if (!file_exists($this->_file)) return true;
        }
        return $this->_unlink($this->_file);
    }