<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _update_indexes_for_deleted_object(collection, obj):
 """If an object is deleted, it should no longer be indexed so this removes the object from all indexes on the given collection."""

    for index in _db[collection].indexes.values():
        _remove_from_index(index, obj)