we did a system copy and then the temporary license expired. the permanent license which is installed on the system is valid for the original system so is not working. Due to the expired temporary license we cannot now get onto the system except using SAP*.
To fix the problem we need to delete the expired temporary license and invalid permanent licenses and apply a new license but SAP* is unable to delete old licenses so we cannot apply a new license.
the old OS command of saplicense -delete no longer works for new releases.
checked SAP Note 94998
checked SAP Note 917936