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();
    }
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();
    }
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 ( ) ; }
Delete a definition from the environment file

<key>...
: One or more keys to remove from the environment file.

[--file=<path-to-dotenv>]
: Path to the environment file.  Default: '.env'

@when     before_wp_load

@param $_
@param $assoc_args
Delete a definition from the environment file