30 seconds with a Google search for "remove updates that has failed in the update history wndows 7" and I get this as the first result:
https://answers.microsoft.com/en-us/windows/forum/windows_7-update/windows-updates-failed-want-to-delete-all-failed/2b12cd32-7dbb-4437-9c9c-e8c81fe948fa
acp
March 2017