proper deletion of corpora and copy corpus_ref on rank creation