Edited delete uni so that the document is also deleted