(ctx, **kwargs)
\b
    - DESCRIPTION:
        Delete specified metric.
        If you input both two optional arguments, the 'date' argument will be detected in priority,
        while the job id will be ignored.

    \b
    - USAGE:
        flow component metric-delete -d 20200101
        flow component metric-delete -j $JOB_ID
\b
    - DESCRIPTION:
        Delete specified metric.
        If you input both two optional arguments, the 'date' argument will be detected in priority,
        while the job id will be ignored.
\ b - DESCRIPTION : Delete specified metric . If you input both two optional arguments the date argument will be detected in priority while the job id will be ignored .
def metric_delete(ctx, **kwargs):
    """
    \b
    - DESCRIPTION:
        Delete specified metric.
        If you input both two optional arguments, the 'date' argument will be detected in priority,
        while the job id will be ignored.

    \b
    - USAGE:
        flow component metric-delete -d 20200101
        flow component metric-delete -j $JOB_ID
    """
    config_data, dsl_data = preprocess(**kwargs)
    if config_data.get('date'):
        config_data['model'] = config_data.pop('date')
    access_server('post', ctx, 'tracking/component/metric/delete', config_data)
def metric_delete ( ctx , * * kwargs ) : config_data , dsl_data = preprocess ( * * kwargs ) if config_data . get ( 'date' ) : config_data [ 'model' ] = config_data . pop ( 'date' ) access_server ( 'post' , ctx , 'tracking/component/metric/delete' , config_data )