Delete all the custom styles of an area of the currently loaded collection version.

@param \Concrete\Core\Area\Area $area
428736
public function resetAreaCustomStyle($area)
    {
        $db = Loader::db();
        $db->Execute(
            'delete from CollectionVersionAreaStyles where cID = ? and cvID = ? and arHandle = ?',
            [
                $this->getCollectionID(),
                $this->getVersionID(),
                $area->getAreaHandle(),
            ]
            );
    }
1143010
public function move(Collection $collection, Area $area)
    {
        $old_collection = $this->getBlockCollectionID();
        $new_collection = $collection->getCollectionID();

        $old_version = $this->getBlockCollectionObject()->getVersionObject()->getVersionID();
        $new_version = $collection->getVersionObject()->getVersionID();

        $old_area_handle = $this->getAreaHandle();
        $new_area_handle = $area->getAreaHandle();

        return (bool) \Database::connection()->update(
            'CollectionVersionBlocks',
            [
                'cID' => $new_collection,
                'cvID' => $new_version,
                'arHandle' => $new_area_handle,
            ],
            [
                'cID' => $old_collection,
                'cvID' => $old_version,
                'arHandle' => $old_area_handle,
                'bID' => $this->getBlockID(),
            ]
            );
    }
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);
    }
1293048
function ReportAreaAction(Area $area, Enums\Action $action)
    {
        $logItem = $this->CreateLogItem(Enums\ObjectType::Area(), $action);       
        if (!$action->Equals(Enums\Action::Delete()))
        {
            $logArea = new LogArea();
            $logArea->SetLogItem($logItem);
            $logArea->SetArea($area);
            $logArea->Save();
        }
        else
        {
            $this->ReportLayoutAction($area->GetLayout(), Enums\Action::ChildDelete());
        }
    }
139492
function deleteStoredClassAttribute( $contentClassAttribute, $version = null )
    {
        $contentClassAttributeID = $contentClassAttribute->attribute( 'id' );
        eZEnumValue::removeAllElements( $contentClassAttributeID, $version );

    }
1155573
public function postConfiguration($area)
    {
        $area = app(AreaManager::class)->getById($area);

        return $this->processor->markAsConfigured($this, $area);
    }
916866
private function fillArea(Area $area, $path)
    {
        $finder = new Finder($path);

        foreach (SortorderParser::parse($finder) as $subPath)
        {
            $contentFullPath = $path . DIRECTORY_SEPARATOR . $subPath;
            if(file_exists($contentFullPath))
            {
                //Detect file extension
                $type = substr($subPath, strrpos($subPath, '.') + 1);

                $area->addContentAsLast(
                    new Content(
                        $type,
                        substr($contentFullPath, strlen($this->contentPath))
                    )
                );
            }
            else
            {
                throw new  PageException("Unable to find content at [$contentFullPath]");
            }
        }
    }
886276
public static function delete_all_for_context($contextid) {
        global $DB;

        $areaids = $DB->get_fieldset_select('grading_areas', 'id', 'contextid = ?', array($contextid));
        $methods = array_keys(self::available_methods(false));

        foreach($areaids as $areaid) {
            $manager = get_grading_manager($areaid);
            foreach ($methods as $method) {
                $controller = $manager->get_controller($method);
                $controller->delete_definition();
            }
        }

        $DB->delete_records_list('grading_areas', 'id', $areaids);
    }
177053
public function cleanStyles($e)
    {
        if (!\is_object($e)) {
            return;
        }

        $elems = $e->getElementsByTagName('*');

        foreach ($elems as $elem) {
            $elem->removeAttribute('style');
        }
    }
678339
public function remove(stdClass $submission) {
        $fs = get_file_storage();

        $fs->delete_area_files($this->assignment->get_context()->id,
                               'assignsubmission_file',
                               ASSIGNSUBMISSION_FILE_FILEAREA,
                               $submission->id);
        return 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);
        }
    }
1128120
protected function putGitignore($area)
    {
        $target = resource_path(implode(DIRECTORY_SEPARATOR, ['lang', $area, '.gitignore']));
        if (!file_exists($target)) {
            return $this->filesystem->put($target, "*\n!.gitignore");
        }
        return true;
    }
790381
public function setArea($area)
    {
        $context = $this->_context;

        $context->area = Text::camelize($area);

        return $this;
    }
35172
function remove( $removeAttributes = false, $version = eZContentClass::VERSION_STATUS_DEFINED )
    {
        // If we are not allowed to remove just return false
        if ( $this->Version == eZContentClass::VERSION_STATUS_DEFINED && !$this->isRemovable() )
            return false;

        if ( is_array( $removeAttributes ) or $removeAttributes )
            $this->removeAttributes( $removeAttributes );

        $this->NameList->remove( $this );
        parent::remove();
    }
382465
public function _cleanup(&$collection)
    {
        $name = $this->name();

        if ($this->isMany()) {
            foreach ($collection as $index => $entity) {
                if (is_object($entity)) {
                    $entity->{$name} = [];
                } else {
                    $collection[$index][$name] = [];
                }
            }
            return;
        }

        foreach ($collection as $index => $entity) {
            if (is_object($entity)) {
                unset($entity->{$name});
            } else {
                unset($entity[$name]);
            }
        }
    }
906694
public void setColor(TimeArea area, Color color) {
        // If null was supplied, then use the default color.
        if (color == null) {
            color = area.defaultColor;
        }
        // Save the color to the color map.
        colors.put(area, color);

        // Call any "updating functions" that are appropriate for the specified area.
        if (parent != null) {
            parent.zDrawTextFieldIndicators();
        }
    }
83891
protected function CanEdit(Area $area)
    {
        return self::Guard()->Allow(BackendAction::Edit(), $area) &&
                self::Guard()->Allow(BackendAction::UseIt(), new AreaForm());
    }