clearData

fun clearData(format: String = definedExternally)(source)

The DataTransfer.clearData() method removes the drag operation's drag data for the given type.

MDN Reference