private static void removeFile(final File metadataFile) throws IOException {
        val result = !metadataFile.exists() || metadataFile.delete();
        LOGGER.trace("Deleted service definition file [{}]: [{}]",
            metadataFile.getCanonicalPath(), BooleanUtils.toStringYesNo(result));
    }
This is {@link GitSamlRegisteredServiceMetadataResolver}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-saml-idp-metadata-git/src/main/java/org/apereo/cas/support/saml/metadata/resolver/GitSamlRegisteredServiceMetadataResolver.java