The keyword youʼre probably looking for is “revocation”. Itʼs a manual task you have to go through.
But you donʼt need to do this unless the corresponding private key is compromised. Just let the old certificate expire and remove any old certs/keys you have left from your server(s).
Yes, I would like to revoke this certificate. How do I do that for the certificate which is installed on Linux based AWS EC2 Instance? I will require correct SSH command to first list the certificate and then to revoke it?
What client are you using? If you normally use SSH, yes, you should probably SSH in and run something. If you have a control panel, it hopefully has a revoke button.
For example, if using Certbot, you could run "certbot revoke --cert-path /etc/letsencrypt/example.com/fullchain.pem --reason cessationofoperation".