As raised by #1551, when you remove something from a list its reference is deleted, but the object the reference was referring to may become orphaned if there are no other references to it.
Long-term we should be looking into something similar to what the web client is doing with garbage collection, but as a short-term workaround, we can add (with sufficient warnings about potentially creating invalid references) an option to delete the value for a particular key if the developer is able to know for certain that something should be completely removed from the DB.
As raised by #1551, when you remove something from a list its reference is deleted, but the object the reference was referring to may become orphaned if there are no other references to it.
Long-term we should be looking into something similar to what the web client is doing with garbage collection, but as a short-term workaround, we can add (with sufficient warnings about potentially creating invalid references) an option to delete the value for a particular key if the developer is able to know for certain that something should be completely removed from the DB.