Yusmeiro Petit will replace him in the rotation, manager Bruce Bochy said Monday. Bochy met with Lincecum (10-9) on Sunday about the decision.
Lincecum, the two-time NL Cy Young Award winner, is coming off the second-shortest start of his career Saturday at Washington. He was tagged for six runs, four earned, on six hits with four walks in 2 2-3 innings.
The 30-year-old Lincecum has experience pitching in relief, going 1-1 during the team's 2012 run to its second World Series title in three years. He pitched the Game 5 World Series clincher at Texas in 2010 as the franchise won its first championship since moving West in 1958.