Hello @Ashley H,
This error message will trigger when you have TokenEncryptionKeyId present for your application. To fix this issue please deactivate the token encryption for your application and then try to delete the expired certificate from the application certs.
To deactivate token encryption in the Microsoft Entra admin center
- In the Microsoft Entra admin center, browse to Identity > Applications > Enterprise applications > All applications, and then select the application that has SAML token encryption enabled.
- On the application's page, select Token encryption, find the certificate, and then select the ... option to show the dropdown menu.
- Select Deactivate token encryption.
To deactivate token encryption in the Microsoft Entra admin center
I hope this information is helpful. Please feel free to reach out if you have any further questions.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".