clearData

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

The DataTransfer.clearData() method removes the drag operation's drag data for the given type. If data for the given type does not exist, this method does nothing.

MDN Reference