Added new feature to delete parts of documents