Removes an element from the set.

@param  array|Traversable $set
@param  array $args
349920
public static function remove(&$set, $args)
    {
        self::assertArgsNumber(1, $args);

        foreach ($set as $key => $value) {
            if ($value === $args[0]) {
                unset($set[$key]);
                return;
            }
        }
    }
298090
public function forget($keys)
    {
        $remove  = $keys;

        foreach($remove as $key){
            $this->unsetValue($key);
        }

    }
1358337
function remove($args)
    {
        $cache  = $this->get_cache();
        $status = $cache->remove($args['id']);

        $args['status'] = true;

        return $args;
    }
91398
function removeOptions(args, keys) {
    if (!_.isArray(keys)) {
        keys = [ keys ];
    }
    for (var index = 0; index < args.length; index++) {
        var arg = args[index];
        for (var key in arg) {
            if (_.includes(keys, key)) {
                delete arg[key];
            }
        }
    }
}
226671
public function remove($arg)
    {
        return $this->getConnection()
            ->delete($this->tableName, array($this->uniqueId => $this->create($arg)->getId())) > 0;
    }
1186132
public function preRemove(LifecycleEventArgs $args)
    {
        $entity = $args->getEntity();

        if ($entity instanceof Bug) {
            $this->messageBus->dispatch(new RemoveScreenshotsMessage($entity->getId(), $entity->getTask()->getModel()));
        }
    }
1252284
public function remove(string ...$args): self
    {
        $classes = $this->getClasses();

        $classes = array_diff($classes, $args);

        $this->html->setAttribute('class', implode(' ', $classes));

        return $this;
    }
88751
public function delete( $args ) {
		list( $key ) = $args;

		if ( ! delete_site_option( $key ) ) {
			WP_CLI::error( "Could not delete '{$key}' site option. Does it exist?" );
		} else {
			WP_CLI::success( "Deleted '{$key}' site option." );
		}
	}
348573
def remove_arg(self, arg):
        """"""

        self.args = [arg_.strip() for arg_ in self.args if arg_.strip()]

        for arg_ in list(self.args):
            if arg_.lower() == arg.lower():
                self.args.remove(arg_)
1040598
public function subset( \PhpSets\Set $set ) {
        $iterator = $set->entries();

        // iterate through $set and return false is an uncommon value is present
        while ( $iterator->valid() ) {
            if ( ! $this->has( $iterator->current() ) ) {
                return false;
            }
            $iterator->next();
        }

        $iterator->rewind();

        return true;
    }
327634
public function union ($set) {
        if (is_array ($set)) {
            $parameters = $set;
        } else {
            $parameters = func_get_args ();
        }
        foreach ($parameters as $n => $set) {
            if ($set instanceof ARedisSet) {
                $parameters[$n] = $set->name;
            }
        }
        array_unshift ($parameters , $this->name);
        return call_user_func_array (array(
            $this->getConnection ()->getSlave(),
            "sunion"
        ) , $parameters);
    }
1154527
public function removeAll()
    {
        foreach ($this->argumentNames as $argumentName => $booleanValue) {
            parent::offsetUnset($argumentName);
        }
        $this->argumentNames = [];
    }
69784
public function delete($_, $assoc_args)
    {
        $this->init_args(func_get_args());
        $env = $this->get_env_for_write_or_fail();

        foreach ($_ as $key) {
            if ($result = $env->remove($key)) {
                WP_CLI::success("Removed '$key'");
            } else {
                WP_CLI::warning("No line found for key: '$key'");
            }
        }

        $env->save();
    }
240223
public function remove( $args, $assoc_args ) {

		list( $menu, $location ) = $args;

		$menu = wp_get_nav_menu_object( $menu );
		if ( ! $menu || is_wp_error( $menu ) ) {
			WP_CLI::error( 'Invalid menu.' );
		}

		$locations = get_nav_menu_locations();
		if ( Utils\get_flag_value( $locations, $location ) !== $menu->term_id ) {
			WP_CLI::error( "Menu isn't assigned to location." );
		}

		$locations[ $location ] = 0;
		set_theme_mod( 'nav_menu_locations', $locations );

		WP_CLI::success( 'Removed location from menu.' );

	}
1354689
def remove(self, *args):
        
        for x in args:
            self.children.remove(x)
        return self.children
1348578
protected function cutArgument($name, &$args)
    {
        if (isset($args[$name])) {
            $result = $args[$name];
            unset($args[$name]);
            return $result;
        }

        return null;
    }
1253617
public function reset($args = null) {
		if ($args === null) {
			$this->service = null;
			return;
		}
		
		$args = $this->normalizeArgs($args);
		$id   = $this->getIdByArgs($args);
		
		unset($this->servicesByArgs[$id]);
	}