delete document functionality