added del statement for documents