Deletes DynCss folders inside typo3temp/.

@param array                                    $params
@param \TYPO3\CMS\Core\DataHandling\DataHandler $pObj
335288
public function clearCachePostProc(array $params, DataHandler &$pObj)
    {
        if (!isset($params['cacheCmd'])) {
            return;
        }
        switch ($params['cacheCmd']) {
            case 'dyncss':
                $pObj->clear_cacheCmd("pages");
                GeneralUtility::rmdir(
                    PATH_site.'typo3temp/Cache/Data/DynCss',
                    true
                );

                GeneralUtility::rmdir(
                    PATH_site.'typo3temp/DynCss',
                    true
                );
                break;
            default:

        }
    }
8675
public function addConfigFunctionary(&$params, &$pObj)
    {
        $aID = $params['flexParentDatabaseRow']['pi_flexform']['data']['General']['lDEF']['settings.associationID']['vDEF'];

        if (!empty($aID)) {
            $associationRepository = $this->objectManager->get(AssociationRepository::class);
            $functionaryRepository = $this->objectManager->get(FunctionaryRepository::class);

            $association = $associationRepository->findByID($params['flexParentDatabaseRow']['pi_flexform']['data']['General']['lDEF']['settings.associationID']['vDEF']);

            $functionaries = $functionaryRepository->findFunctionariesByAssociation($association);

            foreach ($functionaries->getfunctionaries() as $functionary) {
                $params['items'][] = [
          implode(' | ', [implode(' ', [$functionary->getLastName(), $functionary->getFirstName()]), $functionary->getRole()]),
          $functionary->getID()
        ];
            }
        }
    }
1193717
protected function delete(string $path, array $params = [], array $headers = [])
    {
        $body = self::createJsonBody($params);

        if ($body) {
            $headers = self::addJsonContentType($headers);
        }

        return $this->deleteRaw($path, $body, $headers);
    }
898437
public function deleteAccount(IdentityToolkit_IdentitytoolkitRelyingpartyDeleteAccountRequest $postBody, $optParams = array())
  {
    $params = array('postBody' => $postBody);
    $params = array_merge($params, $optParams);
    return $this->call('deleteAccount', array($params), "IdentityToolkit_DeleteAccountResponse");
  }
729423
public function delete($params, $optParams = [])
    {
        if (is_string($params)) {
            $params = ['publicId' => $params];
        }

        return $this->sendRequest(['cloudId', 'publicId'], [
            'restAction' => 'delete',
            'uri' => '/c/<cloudId>/o/<publicId>',
            'params' => $params,
            'getParams' => $optParams,
        ], function ($response) {
            return $response->success;
        });
    }
726785
public function addConfigAnnouncement(&$params, &$pObj)
    {
        $aID = $params['flexParentDatabaseRow']['pi_flexform']['data']['General']['lDEF']['settings.associationID']['vDEF'];

        if (!empty($aID)) {
            $associationRepository = $this->objectManager->get(AssociationRepository::class);
            $announcementRepository = $this->objectManager->get(AnnouncementRepository::class);

            $association = $associationRepository->findByID($aID);

            $announcements = $announcementRepository->findAnnouncementsByAssociation($association);

            foreach ($announcements->getAnnouncements() as $announcement) {
                $params['items'][] = [
          implode(' - ', [$announcement->getCreatedDate()->format('d.m.Y H:i:s'), $announcement->getTitle()]),
          $announcement->getID()
        ];
            }
        }
    }
38523
public function deleteOAuthProvider($params)
    {
        if (is_string($params)) {
            $params = array('provider_consumer_key' => $params);
        } else {
            $params = $this->checkFilterParams($params, array('provider_consumer_key'), array('provider_consumer_key'));
            if ($params === false) {
                throw new \InvalidArgumentException("params array contains invalid parameters or misses required parameters");
            }
        }

        return $this->lastRequest->delete(null, 'oauth_providers/' . $params[ 'provider_consumer_key' ]);
    }
1143840
public function delete($conditions, $params = array()){
        return $this->db->builder()->delete($this->table, $conditions, $params);
    }
409409
private function removeByChunk(array $ids) {
    $storage = $this->entityTypeManager->getStorage('openy_pef_gxp_mapping');
    $chunks = array_chunk($ids, self::CHUNK_DELETE);

    foreach ($chunks as $chunk) {
      $entities = $storage->loadMultiple($chunk);
      $storage->delete($entities);
      $this->loggerChannel->debug(
        'Chunk of %chunk openy_pef_gxp_mapping entities has been deleted.',
        ['%chunk' => count($chunk)]
      );
    }
  }
1220743
public function deleteContent(array $ids): void
	{
		if ($this->isAjax() && $this->editConst) {
			$pages = $this->orm->content->findById($ids);
			foreach ($pages as $page) {
				$this->orm->content->remove($page);
			}
			$this->orm->flush();
			$this['list']->reload();
		} else {
			$this->terminate();
		}
	}
256939
public String delete(String endpoint, String params) throws IOException {
        return this.delete(endpoint, params, "");
    }
306416
public static function deleteByPk($pk, $condition = null, $params = array())
    {
        if (!is_a($condition, '\\mpf\\datasources\\sql\\ModelCondition')) {
            $condition = ModelCondition::getFrom($condition, get_called_class());
        }
        /* @var $condition ModelCondition */
        $condition->compareColumn(static::getDb()->getTablePk(static::getTableName()), $pk);
        return static::deleteAll($condition, $params);
    }
820222
public function addJSCSS(array $parameters, \TYPO3\CMS\Core\Page\PageRenderer $pageRenderer)
    {
        if (!empty($GLOBALS['SOBE']) && (get_class($GLOBALS['SOBE']) === RecordListController::class || is_subclass_of(
            $GLOBALS['SOBE'],
                    RecordListController::class
        ))) {
            $pageRenderer->loadRequireJsModule('TYPO3/CMS/Gridelements/GridElementsOnReady');
            return;
        }
        if (!empty($GLOBALS['SOBE']) && (get_class($GLOBALS['SOBE']) === PageLayoutController::class || is_subclass_of(
            $GLOBALS['SOBE'],
                    PageLayoutController::class
        ))) {
            $iconFactory = GeneralUtility::makeInstance(IconFactory::class);
            $pageRenderer->loadRequireJsModule('TYPO3/CMS/Gridelements/GridElementsOnReady');
            $pageRenderer->loadRequireJsModule('TYPO3/CMS/Gridelements/GridElementsDragDrop');
            $pageRenderer->loadRequireJsModule('TYPO3/CMS/Gridelements/GridElementsDragInWizard');

            /** @var Clipboard $clipObj */
            $clipObj = GeneralUtility::makeInstance(Clipboard::class); // Start clipboard
            $clipObj->initializeClipboard();
            $clipObj->lockToNormal();
            $clipBoard = $clipObj->clipData['normal'];
            if (!$pageRenderer->getCharSet()) {
                $pageRenderer->setCharSet('utf-8');
            }

            // pull locallang_db.xml to JS side - only the tx_gridelements_js-prefixed keys
            $pageRenderer->addInlineLanguageLabelFile(
                'EXT:gridelements/Resources/Private/Language/locallang_db.xml',
                'tx_gridelements_js'
            );

            $pAddExtOnReadyCode = '
                TYPO3.l10n = {
                    localize: function(langKey){
                        return TYPO3.lang[langKey];
                    }
                }
            ';

            $id = (int)GeneralUtility::_GP('id');
            $layout = GeneralUtility::callUserFunction(
                BackendLayoutView::class . '->getSelectedBackendLayout',
                $id,
                $this
            );
            if (is_array($layout) && !empty($layout['__config']['backend_layout.']['rows.'])) {
                /** @var LayoutSetup $layoutSetup */
                $layoutSetup = GeneralUtility::makeInstance(LayoutSetup::class)->init(0);
                $layout = ['config' => $layout['__config']['backend_layout.']];
                $columns = $layoutSetup->checkAvailableColumns($layout, true);
                if ($columns['allowed'] || $columns['disallowed'] || $columns['maxitems']) {
                    $layout['columns'] = $columns;
                    unset($layout['columns']['allowed']);
                    $layout['allowed'] = $columns['allowed'] ?: [];
                    $layout['disallowed'] = $columns['disallowed'] ?: [];
                    $layout['maxitems'] = $columns['maxitems'] ?: [];
                }
            }

            // add Ext.onReady() code from file
            $uriBuilder = GeneralUtility::makeInstance(UriBuilder::class);
            $pAddExtOnReadyCode .= '
            top.pageColumnsAllowed = ' . json_encode($layout['allowed']) . ';
            top.pageColumnsDisallowed = ' . json_encode($layout['disallowed']) . ';
            top.pageColumnsMaxitems = ' . json_encode($layout['maxitems']) . ';
            top.pasteReferenceAllowed = ' . ($this->getBackendUser()->checkAuthMode(
                'tt_content',
                'CType',
                'shortcut',
                    $GLOBALS['TYPO3_CONF_VARS']['BE']['explicitADmode']
            ) ? 'true' : 'false') . ';
            top.skipDraggableDetails = ' . ($this->getBackendUser()->uc['dragAndDropHideNewElementWizardInfoOverlay'] ? 'true' : 'false') . ";
            top.backPath = '" . $GLOBALS['BACK_PATH'] . "';
            top.browserUrl = '" . htmlspecialchars($uriBuilder->buildUriFromRoute('wizard_element_browser')) . "';";

            if (!empty($clipBoard) && !empty($clipBoard['el'])) {
                $clipBoardElement = GeneralUtility::trimExplode('|', key($clipBoard['el']));
                if ($clipBoardElement[0] === 'tt_content') {
                    $clipBoardElementData = BackendUtility::getRecord('tt_content', (int)$clipBoardElement[1]);
                    $pAddExtOnReadyCode .= "
            top.clipBoardElementCType = '" . $clipBoardElementData['CType'] . "';
            top.clipBoardElementTxGridelementsBackendLayout = '" . (($clipBoardElementData['CType'] == 'gridelements_pi1') ? $clipBoardElementData['tx_gridelements_backend_layout'] : '') . "';
            top.clipBoardElementListType = '" . $clipBoardElementData['list_type'] . "';";
                } else {
                    $pAddExtOnReadyCode .= "
            top.clipBoardElementCType = '';
            top.clipBoardElementTxGridelementsBackendLayout = '';
            top.clipBoardElementListType = '';";
                }
            }

            $pAddExtOnReadyCode .= '
                    top.copyFromAnotherPageLinkTemplate = ' . json_encode('<a class="t3js-paste-new btn btn-default" title="' . $this->getLanguageService()->sL('LLL:EXT:gridelements/Resources/Private/Language/locallang_db.xml:tx_gridelements_js.copyfrompage') . '">' . $iconFactory->getIcon(
                'actions-insert-reference',
                        Icon::SIZE_SMALL
            )->render() . '</a>') . ';';

            $pageRenderer->addJsInlineCode('gridelementsExtOnReady', $pAddExtOnReadyCode);
        }
    }
1322734
public function remove(string $snippet, array $params = [])
    {
        $path = $this->buildUsersPath($snippet);

        return $this->delete($path, $params);
    }
234170
public function deleteItems( \stdClass $params )
	{
		$this->checkParams( $params, array( 'site', 'items' ) );
		$this->setLocale( $params->site );

		$this->getManager()->deleteItems( (array) $params->items );
		$this->clearCache( (array) $params->items );

		return array(
			'items' => $params->items,
			'success' => true,
		);
	}
539602
public function remove($params = [])
    {
        $this->params = array_diff_key($this->params, array_fill_keys($params, ''));
        return $this;
    }
537961
public function clear( \stdClass $params )
	{
		$this->checkParams( $params, array( 'site' ) );
		$this->setLocale( $params->site );

		$this->getContext()->getCache()->clear();

		return array(
			'success' => true,
		);
	}