How to programmatically clear library info definition?
Okay, searching thru core services found this. We can clear all the library definitions like this.
\Drupal::service('library.discovery')-&gt;clearCachedDefinitions();

See Drupal Reference of this method: Reference
Calling this function Clears static and persistent library definition caches.