public void clearAll(){
  int itemCount=productImagesUrls.size();
  if (itemCount > 0) {
    productImagesUrls.clear();
    notifyItemRangeRemoved(0,itemCount);
  }
}

public void clearAll ( ) { int itemCount = productImagesUrls . size ( ) ; if ( itemCount > 0 ) { productImagesUrls . clear ( ) ; notifyItemRangeRemoved ( 0 , itemCount ) ; } }
clear list of product images .
