Prerequisite
A role can only be deleted if it has no associated users.
Procedure
In the left sidebar of the AOC System configuration page, select Role management. Click ... on the right of the target custom role to perform the editing or deleting operation.