Removes an area.

@param Area $area
3398
public function removeArea(Area $area)
    {
        if ($this->areas->contains($area)) {
            $this->areas->removeElement($area);
        }
    }
1343475
public void exclusiveOr (Area area) {
        Area a = clone();
        a.intersect(area);
        add(area);
        subtract(a);
    }
173869
public function setCustomStyleSet($area, $set)
    {
        $db = Loader::db();
        $db->Replace(
            'CollectionVersionAreaStyles',
            [
                'cID' => $this->getCollectionID(),
                'cvID' => $this->getVersionID(),
                'arHandle' => $area->getAreaHandle(),
                'issID' => $set->getID(),
            ],
            ['cID', 'cvID', 'arHandle'],
            true
            );
    }
1153787
private function setRegions($regions, $area)
    {
        sort($regions);

        $abbreviations = SwatDate::getTimeZoneAbbreviations();

        foreach ($regions as $region) {
            $title = $this->getRegionTitle($region);

            if (isset($abbreviations[$area . '/' . $region])) {
                $data = $abbreviations[$area . '/' . $region];

                if (!empty($data['dt']) && !empty($data['st'])) {
                    $title .= sprintf(' (%s/%s)', $data['st'], $data['dt']);
                } elseif (!empty($data['st'])) {
                    $title .= sprintf(' (%s)', $data['st']);
                }
            }

            $this->regions[$area][] = new SwatOption($region, $title);
        }
    }
234539
public function setBlockAreaObject(&$a)
    {
        $this->a = $a;
        $this->arHandle = $a ? $a->getAreaHandle() : null;
    }
1335206
public void removeArea(final TimeSection AREA) {
        if (null == AREA) return;
        areas.remove(AREA);
        Collections.sort(areas, new TimeSectionComparator());
        fireUpdateEvent(SECTION_EVENT);
    }
345852
public function remove($object)
    {
        $this
            ->objectManager
            ->remove($object);

        $this
            ->objectManager
            ->flush($object);
    }
1155757
public final void removeAreaListener(@NonNull final AreaListener listener) {
        Condition.INSTANCE.ensureNotNull(listener, "The listener may not be null");
        this.areaListeners.remove(listener);
    }
126634
public function synchronize($lang, $area)
    {
        $locale       = $lang->code;
        $translations = $this->translationsFromFiles($locale);
        if (empty($translations)) {
            $translations = $this->translationsFromFiles(lang()->code);
        }
        $items   = Translation::where('locale', $locale)->where('area', $area)->get();
        $grouped = [];
        foreach ($items as $item) {
            $grouped[$item->group][$item->key] = $item->value;
        }
        $deletes = [];

        foreach ($grouped as $name => $group) {
            if (!isset($translations[$name])) {
                continue;
            }
            $deleted = array_diff($group, $translations[$name]);
            if (!empty($deleted)) {
                $deletes[$name] = $deleted;
            }
        }
        $this->delete($lang->id, $area, $deletes);
        $this->insert($locale, $area, $translations);
    }
515673
public function remove($data)
    {
        $data = $this->fetchRemainingSegment($this->data, $data);
        if (! is_null($data)) {
            $this->set($data);
        }
    }
167411
public function removeSection( $section )
	{
		if( !isset( $this->list[$section] ) )
			throw new InvalidArgumentException( 'Invalid Section "'.$section.'".' );
		unset( $this->list[$section] );
	}
78450
public function unsetEventAreaCache($area) {
        if (version_compare(Mage::getVersion(), '1.11.0', '>=') // enterprise
            || version_compare(Mage::getVersion(), '1.6.0', '>=')) {
            // community
            unset($this->_eventAreas[$area]);
        }
    }
730177
public static function close_file($resource, $area = null)
	{
		// If locks aren't used, don't unlock
		if ( static::instance($area)->use_locks())
		{
			flock($resource, LOCK_UN);
		}

		fclose($resource);
	}
506755
public function deletePermission(string $action): void
    {
        /** @var HCAclPermission $permission */
        $permission = $this->findOneBy(['action' => $action]);

        $permission->roles()->detach();

        $permission->forceDelete();
    }
1356528
public function area($area = null)
    {
        if ($area !== null) {
            $this->area = $area;
        }
        return $this->area;
    }
376635
public function deleteByCollection($langId, $area, $list)
    {
        if (empty($list)) {
            return;
        }

        foreach ($list as $group => $element) {
            DB::table('tbl_translations')
                    ->where('lang_id', $langId)
                    ->where('group', $group)
                    ->where('area', $area)
                    ->where('key', key($element))
                    ->where('value', current($element))->delete();
        }
        return true;
    }
1292227
public function deleteRegion($regionId)
    {
        $this->getLogger()->info('Deleting Region ID ' . $regionId . 'In Layout ID ' . $this->layoutId);
        $this->doDelete('/region/' . $regionId);
        
        return true;
    }