virtual bool DestroyCapsuleRole (RTActorRef & capsuleRole, int cardinalityIndex = -1)

ConcurrencyrsSequentialConcurrencyVisibilityrsProtected

Code
if (cardinalityIndex == -1)
{
    // Destroy all instances of the capsuleRole
    if (!RQART_Frame.destroy(capsuleRole))
        return false;
    else
        return true;
}
else
{
    // Destroy a specific instance of the capsuleRole
    RTActorId capsuleId = RQART_Frame.incarnationAt(capsuleRole, cardinalityIndex);
    if(!capsuleId.isValid())
        return false; // destroy considered failed if not valid
    if (!RQART_Frame.destroy(capsuleId))
        return false; // destroy failed
    else
        return true;  // destroy succeeded
}


Parameter capsuleRole

Parameter cardinalityIndex