remove

fun <E> MutableLiveData<List<E>>.remove(element: E): Boolean

Removes a single instance of the specified element from a MutableLiveData, if it is present. The observers are notified of the new value if any of the specified elements was removed.

Return

true if the element has been successfully removed; false if it was not present in the MutableLiveData.