Using Derby or Racer, this function deletes an item when either it is a document or is into an array.