deleteResource method
Deletes a resource on the given keyExpr.
Throws ZenohException if the key expression is invalid or the delete fails. Throws StateError if the session has been closed.
Implementation
void deleteResource(String keyExpr) {
_withKeyExpr(keyExpr, (loanedSession, loanedKe) {
final rc = bindings.zd_delete(loanedSession.cast(), loanedKe.cast());
if (rc != 0) {
throw ZenohException('Delete failed', rc);
}
});
}