private void deleteFile() {
        try {
            Files.delete(getFile().toPath());
        } catch (final IOException ex) {
            val msg = String.format("Failed to delete temporary heap dump file %s", getFile());
            LOGGER.warn(msg, ex);
        }
    }
This is {@link TemporaryFileSystemResource}.

@author Misagh Moayyed
@since 6.0.0
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/io/TemporaryFileSystemResource.java