Added curl http headers to the delete function