Remove all Access when user state changes from Inactive to Terminated

with reference to,
Remove all entitlements with workflow - Identity Security Cloud (ISC) / ISC Discussion and Questions - SailPoint Developer Community

is this correct approach to remove both Ent and AP in Loop Input?
$.hTTPRequest.body[0].access[?(@.type == “ACCESS_PROFILE” && @.type == “ENTITLEMENT”)]