Removes given analytics.

@param string $webspace
@param int $id

@return Response
355476
public function deleteAction($webspace, $id)
    {
        $this->get('sulu_website.analytics.manager')->remove($id);
        $this->get('doctrine.orm.entity_manager')->flush();
        $this->get('sulu_website.http_cache.clearer')->clear();

        return $this->handleView($this->view(null, 204));
    }
684793
public function destroy($id)
    {
    	$permission = Permission::findOrFail($id);
		$permission->delete();
		
		return redirect(url("permission"))->with('dp_announce', trans('deeppermission.alert.permission.deleted'));
    }
743980
public function remove($action, $id = null)
    {
        /** @var $query \eZ\Publish\Core\Persistence\Database\DeleteQuery */
        $query = $this->dbHandler->createDeleteQuery();
        $query->deleteFrom(
            $this->dbHandler->quoteTable($this->table)
        )->where(
            $query->expr->eq(
                $this->dbHandler->quoteColumn('action'),
                $query->bindValue($action, null, \PDO::PARAM_STR)
            )
        );

        if ($id !== null) {
            $query->where(
                $query->expr->lAnd(
                    $query->expr->eq(
                        $this->dbHandler->quoteColumn('is_alias'),
                        $query->bindValue(0, null, \PDO::PARAM_INT)
                    ),
                    $query->expr->eq(
                        $this->dbHandler->quoteColumn('id'),
                        $query->bindValue($id, null, \PDO::PARAM_INT)
                    )
                )
            );
        }

        $query->prepare()->execute();
    }
279921
public function removeFilterByID($id)
    {
        $this->filters = $this->filters->reject(function (AbstractFilter $filter) use ($id) {
            return $filter->getId() == $id;
        });
    }
1298670
public function destroy($id)
    {
        $campagne = $this->campagne->find($id);
        $campagne->content()->delete();
        
        $this->campagne->delete($id);

        alert()->success('Campagne supprimée');

        return redirect()->back();
    }
808467
public function destroy($id)
    {
        try {
            $this->contentTypes->destroy($id);
        } catch (Exception $e) {
            return $this->handleException($e, trans('soda::errors.delete', ['object' => trans('soda::terminology.content_type')]));
        }

        return redirect()->route('soda.content-types.index')->with('warning', trans('soda::messages.deleted', ['object' => trans('soda::terminology.content_type')]));
    }
1072637
public function removeById($id)
    {
        $qry = new InvokePostMethodQuery($this->getResourcePath(),"removebyid",array($id));
        $this->getContext()->addQuery($qry);
    }
439011
public function cdeleteAction(Request $request, $webspace)
    {
        $ids = array_filter(explode(',', $request->get('ids', '')));

        $this->get('sulu_website.analytics.manager')->removeMultiple($ids);
        $this->get('doctrine.orm.entity_manager')->flush();
        $this->get('sulu_website.http_cache.clearer')->clear();

        return $this->handleView($this->view(null, 204));
    }
1042427
static function removeByID( $id )
    {
        $policy = eZPolicy::fetch( $id );
        if ( !$policy )
        {
            return null;
        }
        $policy->removeThis();
    }
753806
public function destroy($id)
    {
        if ($this->form()->destroy($id)) {
            return response()->json([
                'status'  => true,
                'message' => trans('merchant.delete_succeeded'),
            ]);
        } else {
            return response()->json([
                'status'  => false,
                'message' => trans('merchant.delete_failed'),
            ]);
        }
    }
970056
public function destroy($id)
    {
        $user = $this->user->findOrFail($id);

        if($user->delete()) return response()->json(['status' => 'ok']);

        return response()->json(['status' => 'failed']);
    }
168754
public function putAction(Request $request, $webspace, $id)
    {
        $data = $request->request->all();
        $data['content'] = $this->buildContent($data);

        $entity = $this->get('sulu_website.analytics.manager')->update($id, $data);
        $this->get('doctrine.orm.entity_manager')->flush();
        $this->get('sulu_website.http_cache.clearer')->clear();

        return $this->handleView($this->view($entity, 200));
    }
1112952
public function unregisterWorker($id): void
    {
        $this->client->srem('workers', $id);
        $worker_key = sprintf('worker:%s', $id);
        $worker_started = sprintf('%s:started', $worker_key);
        $this->client->del([$worker_key, $worker_started]);
        $this->deleteStats($id);
    }
544905
public function remove($id, $webhookId)
    {
        return $this->delete($this->getPath($id).'/'.rawurlencode($webhookId));
    }
347928
public static function remove($id, $params = null, $apiKey = null)
    {
        $class = get_class();
        return self::_scopedRemoveBatch($class, $id, $params, $apiKey);
    }
517295
public function destroy($id)
    {
        $this->guardAgainstMissingParent('destroy');

        $this->shopify->delete($this->path($id));
    }
388313
public function remove($id, $routing = null)
    {
        $params = [
            'index' => $this->getManager()->getIndexName(),
            'type' => $this->type,
            'id' => $id,
        ];

        if ($routing) {
            $params['routing'] = $routing;
        }

        $response = $this->getManager()->getClient()->delete($params);

        return $response;
    }