working delete function for uploaded documents using ajax call