The public API of the admin metabox is exposed via the window.P2PAdmin property.
window.P2PAdmin
Manually trigger a refresh of the connection candidates for a given metabox:
P2PAdmin.boxes['YOUR_CONNECTION_TYPE'].candidates.sync()
Delete all the connections for a particular connection type (for the current post):
P2PAdmin.boxes['YOUR_CONNECTION_TYPE'].connections.clear()
There was an error while loading. Please reload this page.