Removes an identity provider from a primary key as well as allowing you to
optionally unlink your application from the user's account with the provider.

@param array $params
420696
public function unmap(array $params)
	{
		if (!isset($params['ientifier'])) {
			throw new MissingArgumentException('identifier');
		}

		if (!isset($params['all_identifiers'])) {
			throw new MissingArgumentException('all_identifiers');
		}

		if (!isset($params['primaryKey'])) {
			throw new MissingArgumentException('primaryKey');
		}

		if (!isset($params['unlink'])) {
			throw new MissingArgumentException('unlink');
		}

		if (!isset($params['format'])) {
			$params['format'] = 'json';
		}

		return $this->post('unmap', $params);
	}
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;
        });
    }
429187
public function remove($cond = [], $cb = null, $params = null)
    {
        $this->pool->remove($this->name, $cond, $cb);
    }
553255
public function unlink($model, $ids)
	{
		$params = $this->buildParams(array(
			$model,
			'unlink',
			$ids
		));

		return $this->getClient('object')->call('execute', $params);
	}
666493
public function addOAuthProvider($params = array())
    {
        $params = $this->checkFilterParams($params, array('type', 'provider_consumer_key', 'provider_consumer_secret'),
            array('type', 'provider_consumer_key', 'provider_consumer_secret'));
        if ($params === false) {
            throw new \InvalidArgumentException("params array contains invalid parameters or misses required parameters");
        }

        return $this->lastRequest->post(null, 'oauth_providers', $params);
    }
996397
public function deregisterService(...$params)
    {        
        if (empty($this->registerId)) {
            $hostName = gethostname();
            $this->registerId = sprintf('service-%s-%s', $this->registerName, $hostName);
        }

        $url = sprintf('%s:%d%s', $this->address, $this->port, self::DEREGISTER_PATH);
        $this->removeService([], $url.$this->registerId);
    }
393549
public function unfollow(array $parameters = array(), $multipart = false, $appOnlyAuth = false)
    {
        return $this->postFriendshipsDestroy($parameters, $multipart, $appOnlyAuth);
    }
552792
public function remove($param)
    {
        if ($param instanceof Model) {
            $param = $param->getId();
        }

        $item = $this->get($param);
        if ($item) {
            $id = (string) $item->getId();
            if ($this->_items[$id]) {
                unset($this->_items[$id]);
            }
        }

        return $this;

    }
1216429
public function delete($params, $optParams = [])
    {
        if ($params instanceof SuperBackup) {
            $params = $params->id;
        }
        if(!isset($optParams['cloud'])){
            $optParams['cloud'] = [];
        }
        $optParams['cloud']['id'] = $params;
        return $this->sendRequest([], [
            'restAction' => 'delete',
            'uri' => '/c/<cloud.id>',
            'restId' => $params,
            'getParams' => $optParams,
        ], function ($response) {
            return $response->success;
        });
    }
576945
public function handle_rest_delete( $params ) {
		if ( ! isset( $this->plugins[ $params['guid'] ] ) ) {
			return new \WP_Error( 404, __( 'No plugin found.', 'sekisyo' ) );
		}
		/** @var Plugin $plugin */
		$plugin = $this->plugins[ $params['guid'] ];
		// Check response.
		$response = $plugin->unlink_license( $params['license'] );
		if ( is_wp_error( $response ) ) {
			return $response;
		} else {
			return new \WP_REST_Response( [
				'html'    => $plugin->render(),
				'message' => __( 'License key is unlinked.', 'sekisyo' ),
			] );
		}
	}
808883
public function delete($params = null)
    {
        $handle = $this->prepareDelete($params);
        return $this->curlGetResponse($handle);
    }
805328
public function loadState(array $params)
    {
        //loads state from session
        $session = $this->getRememberSession();
        if ($session && $this->getPresenter()->isSignalReceiver($this)) {
            $session->remove();
        } elseif ($session && empty($params) && $session->params) {
            $params = (array) $session->params;
        }

        parent::loadState($params);
    }
355944
public function delete($uuid, array $params = array())
	{
		$params['uuid'] = $uuid;
		if (!isset($params['type_name'])) {
			throw new MissingArgumentException('type_name');
		}

		return $this->_del($params);
	}
1370601
public function cleanAccessTokens(array $param = [])
    {
        $count = 0;

        foreach ($this->getAllStoredAccessTokenFiles() as $file) {
            $expires_at = $this->loadTimestamp($file);

            if (is_integer($expires_at)) {
                if ($expires_at < time()) {
                    unlink($file);
                    $count++;
                }
            }
        }

        return $count;
    }
901062
public function remove($param)
    {
        if ( ! $this->isOpened()) {
            $this->start();
        }
        if (isset($this->attributes[$param])) {
            unset($this->attributes[$param]);
        }
        return $this;
    }
1190435
public static function logout($params = "")
    {
        phpCAS :: traceBegin();
        phpCAS::_validateClientExists();

        $parsedParams = array ();
        if ($params != "") {
            if (is_string($params)) {
                phpCAS :: error('method `phpCAS::logout($url)\' is now deprecated, use `phpCAS::logoutWithUrl($url)\' instead');
            }
            if (!is_array($params)) {
                phpCAS :: error('type mismatched for parameter $params (should be `array\')');
            }
            foreach ($params as $key => $value) {
                if ($key != "service" && $key != "url") {
                    phpCAS :: error('only `url\' and `service\' parameters are allowed for method `phpCAS::logout($params)\'');
                }
                $parsedParams[$key] = $value;
            }
        }
        self::$_PHPCAS_CLIENT->logout($parsedParams);
        // never reached
        phpCAS :: traceEnd();
    }
805369
public function action_uninstall( $params ) {
		
		$path = $params[0]; 
		
		if ( empty( $path ) ) {
			CCCli::line( 'no ship path given.', 'red' ); return;
		}
		
		/*
		 * direct install if starting with /
		 */
		if ( substr( $path, 0, 1 ) == '/' ) {
			
			// fix path
			if ( substr( $path, -1 ) != '/' ) {
				$path .= '/';
			}
			
			// is directory
			if ( !is_dir( $path ) ) {
				CCCli::line( 'could not find a ship at path: '.$path, 'red' ); return;
			}
			
			// are ya serius..
			if ( !CCCli::confirm( "are you sure you want to uninstall this ship?", true ) ) {
				return;
			}
			
			// run the uninstaller
			try {
				\CCOrbit::uninstall( $path );
			}
			catch ( \Exception $e ) {
				CCCli::line( $e->getMessage(), 'red' ); 
				CCCli::line( 'ship destroying failure.', 'red' ); return;
			}
			
			// also remove the direcoty?
			if ( CCCli::confirm( "do you also wish to remove the ship files?", true ) ) {
				\CCFile::delete( $path );
			}
			
			// we are done
			CCCli::line( 'ship destroyed!', 'green' );
			
			return;
		}
		
		// check if the module is in our orbit path
		if ( is_dir( ORBITPATH.$path ) ) {
			
			// there is a ship yay
			CCCli::line( 'found ship at path: '.ORBITPATH.$path, 'green' );
			
			return static::action_uninstall( array( ORBITPATH.$path ) );
		}
	
		// nothing to do here
		CCCli::line( 'could not find a ship at this path or name.', 'red' ); return;
	}