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