delete object method