Skip to main content
Version: main

Delete document

Delete a document identified by the query parameters.

HTTP request

DELETE /api/now/v1/documents/delete

Path parameters

None.

Query parameters

NameDescription
doc_sys_idOptional — set via the verb's QueryParameters type.
record_sys_idOptional — set via the verb's QueryParameters type.
table_nameOptional — 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)
}
Was this page helpful?