Enable to delete document from Couchbase Sync

I need to delete a document from Couchbase Sync to remove duplicate docs from server. I have tried it using curl request and is giving me an error server is responding with empty response

CURL request:-

curl -X DELETE “http://localhost:4984/litehq/11997339b3b380c156d22bbc2cb5d6ea?rev=10-91836c976f4139f9e346e0b4933c6a61” -H "accept: application/json"
Error: -

curl: (52) Empty reply from server

Hmmm…did you mean you want to remove documents on Couchbase Server via the Sync Gateway?

Its weird that you see an empty response. You should at least see an error message (Example : Forbidden error because user credentials were not provided in Authorization header or a 404 not found if doc does not exist)

Do you happen to have SSL enabled on Sync Gateway?

Please enable logging on the Sync Gateway and see what is logged by the Sync Gateway.

Hi @priya.rajagopal

Thanks for response.

Here are the logs for sync_gateway

sync_1 | 2017-12-06 12:16:34.299246 I | http: panic serving 172.18.0.1:51342: already contains rev "6-fdaff6edf330da1adcf0ecd6cfdd9b71"
sync_1 | goroutine 718 [running]:
sync_1 | net/http.(*conn).serve.func1(0xc825326fd0, 0x7f4c2c693ae0, 0xc821d39f08)
sync_1 | /usr/local/go/src/net/http/server.go:1287 +0xb5
sync_1 | github.com/couchbase/sync_gateway/db.RevTree.addRevision(0xc821e1bb30, 0xc821e005d0, 0x22, 0xc8221fbdd4, 0x22, 0x1, 0x0, 0x0, 0x0, 0x0)
sync_1 | /home/couchbase/jenkins/workspace/sgw-unix-build/1.3.1/community/godeps/src/github.com/couchbase/sync_gateway/db/revtree.go:250 +0x277
sync_1 | github.com/couchbase/sync_gateway/db.(*Database).Put.func1(0xc82395f0a0, 0x1, 0xc825215401, 0x0, 0x0)
sync_1 | /home/couchbase/jenkins/workspace/sgw-unix-build/1.3.1/community/godeps/src/github.com/couchbase/sync_gateway/db/crud.go:459 +0x431

sync_1 | /home/couchbase/jenkins/workspace/sgw-unix-build/1.3.1/community/godeps/src/github.com/couchbase/sync_gateway/db/crud.go:545 +0x2e4

when I am trying to delete it using curl request.