public static void remove(String key) throws IllegalArgumentException {
        if (key == null) {
            throw new IllegalArgumentException("key parameter cannot be null");
        }

        if (getMDCAdapter() == null) {
            throw new IllegalStateException(MDC_APAPTER_CANNOT_BE_NULL_MESSAGE);
        }
        getMDCAdapter().remove(key);
    }
Remove the diagnostic context identified by the <code>key</code> parameter using
the underlying system's MDC implementation. The <code>key</code> parameter
cannot be null. This method does nothing if there is no previous value
associated with <code>key</code>.

@param key  a key
@throws IllegalArgumentException
          in case the "key" parameter is null
slf4j-api/src/main/java/org/slf4j/MDC.java