dropLink

On this page

Deletes a link that was created using the createLink command.

Syntax

db.runCommand({ dropLink: <string> });

Option

Type

Description

dropLink

String

Specifies the name of the link to delete.

Example

The following example deletes a link named linkC:

db.runCommand({ dropLink: "linkC" });

Last modified: January 4, 2024

Was this article helpful?