/**
  * {@ineritedDoc}
  */
 public function remove($key)
 {
     parent::remove($key);
     $asset = $this->get($key);
     $type = static::getAssetType($asset['src']);
     call_user_func_array('wp_deregister_' . $type, $key);
     return $this;
 }
 /**
  * {@inheritdoc}
  */
 public function remove($key, $save = true)
 {
     parent::remove($key);
     if ($save) {
         $this->flush();
     }
     return $this;
 }