However, after Yuwen's removal, it was said that revenues decreased sharply, and Emperor Xuanzong questioned Pei Guangting and other officials who had criticized Yuwen, "You all claim that Yuwen Rong is evil, and I have removed him. Now, what should we do if there is not enough money in the treasury? What are you here for?" Pei and the other officials were fearful and unable to answer, but Emperor Xuanzong did not punish them. Meanwhile, as Pei was also serving as chief imperial censor by this point, he submitted an indictment against Yuwen for corruption and improper association with others, and he was demoted to be the sheriff of Pingle County (平樂, in modern Guilin, Guangxi). After he had spent more than a year at Pingle, the deputy minister Jiang Cen (蔣岑) further accused Yuwen of corruption while serving as prefect of Bian Prefecture. Yuwen was thus further removed as sheriff and exiled to Yan Prefecture (巖州, roughly modern Laibin, Guangxi). It was said that the environment of Yan Prefecture was humid and unhealthy, causing Yuwen to be ill. He thus went on sick leave in Guang Prefecture (廣州, roughly modern Guangzhou, Guangdong). After his leave was to be over, however, he remained in Guang Prefecture, causing the commandant of Guang Prefecture, Geng Renzhong (耿仁忠) to force him to leave. He died on the way back to Yan Prefecture. When Emperor Xuanzong heard this, he remembered Yuwen's contributions and posthumously made him a prefectural prefect.