Adding a library to a project deletes all other libraries in that project

Without seeing your platformio.ini - preferred as preformatted text - it’s hard to say