How to remove the present object code from the Library file
Isn't that in the manual?
http://www.keil.com/support/man/docs/lib51/lib51_cmd_remove.htm