Fix delete error on documents shown as unknowns