Delete document
Delete a document identified by the query parameters.
HTTP request
DELETE /api/now/v1/documents/delete
Path parameters
None.
Query parameters
| Name | Description |
|---|---|
doc_sys_id | Optional — set via the verb's QueryParameters type. |
record_sys_id | Optional — set via the verb's QueryParameters type. |
table_name | Optional — set via the verb's QueryParameters type. |
Request body
Don't supply a request body for this method.
Response
No response body — a nil error means the document was deleted.
Example
if err := client.Now().Documents().Delete().Delete(ctx, nil); err != nil {
log.Fatal(err)
}