Sync Gateway attachments on separate disk

How Sync Gateway stored attachments in the bucket?
As docs show that I can not delete attachments by SG REST API.
And I found a way to delete attachments by SG REST API. but I am not sure If the attachments is deleted in bucket?
How should I delete attachment by SG REST API completely?