deleteAssociation

suspend fun deleteAssociation(association: UtilityAssociation): Result<Unit>

Deletes an association from this utility network. Deleting an association may also update the features that participate in the association.

Use UtilityNetwork.canDeleteAssociations to determine if you can successfully delete associations.

This method requires that the association elements are accessible. Use UtilityElement.isValid to check feature accessibility to ensure it has not been filtered out.

Return

A Result that has no return value. One of the following error codes may be set on the returned Result: * ErrorType.CommonInvalidCall, if this method is called on a utility network schema version that does not support the association type. * ErrorType.GeodatabaseDatabaseClosed, if this method is called after the geodatabase is closed. * ErrorType.CommonInvalidArgument, when the specified association includes an element that is not accessible or does not belong in this utility network.

Since

200.5.0

Parameters

association

The association to delete.

See also