# Update Library https://kodi.wiki/view/HOW-TO:Remotely_update_library ## Command line ### To add new content to the library (Update): **Video:** `curl --data-binary '{ "jsonrpc": "2.0", "method": "VideoLibrary.Scan", "id": "mybash"}' -H 'content-type: application/json;' http://kodi:kodipass1234@localhost:8080/jsonrpc` **Audio:** `curl --data-binary '{ "jsonrpc": "2.0", "method": "AudioLibrary.Scan", "id": "mybash"}' -H 'content-type: application/json;' http://kodi:kodipass1234@localhost:8080/jsonrpc` ### To remove content from library (Clean): **Video:** `curl --data-binary '{ "jsonrpc": "2.0", "method": "VideoLibrary.Clean", "id": "mybash"}' -H 'content-type: application/json;' http://kodi:kodipass1234@localhost:8080/jsonrpc` **Audio:** `curl --data-binary '{ "jsonrpc": "2.0", "method": "AudioLibrary.Clean", "id": "mybash"}' -H 'content-type: application/json;' http://kodi:kodipass1234@localhost:8080/jsonrpc`