Added REST API to delete document