Since you cannot take it on board and your luggage has already been checked in by that time, you will have to dispose of it. Generally, you will need to dispose of your razor on-site. For a knife or safety razor, you might only need to dispose of the blades.