public void delete( String alias ) throws CertificateStoreConfigException
    {
        // Input validation
        if ( alias == null || alias.trim().isEmpty() )
        {
            throw new IllegalArgumentException( "Argument 'alias' cannot be null or an empty String." );
        }

        try
        {
            if ( !store.containsAlias( alias ) )
            {
                Log.info( "Unable to delete certificate for alias '" + alias + "' from store, as the store does not contain a certificate for that alias." );
                return;
            }

            store.deleteEntry( alias );
            persist();
        }
        catch ( CertificateStoreConfigException | KeyStoreException e )
        {
            reload(); // reset state of the store.
            throw new CertificateStoreConfigException( "Unable to delete the certificate from the identity store.", e );

        }
    }
Deletes an entry (by entry) in this store. All information related to this entry will be removed, including
certificates and keys.

When the store does not contain an entry that matches the provided alias, this method does nothing.

@param alias The alias for which to delete an entry (cannot be null or empty).
@throws CertificateStoreConfigException if the entry could not be deleted
xmppserver/src/main/java/org/jivesoftware/openfire/keystore/CertificateStore.java