William13,
Run the BIM Server 18 installer on the BIM Server computer. There is a Repair function available. This will not affect your projects, only restore the BIM Server operational files back to the 3006 build.
May I ask why you are reverting? Is there an issue with build 4020?
PS - I will make sure that we post an article about this on Help Center.
Best regards,