The church was deconsecrated in 1786 and gradually became dilapidated and parts were torn down. It was used as an arsenal and stable during Napoleon's occupation of Vienna in 1809. In 1812, the church was renovated and newly consecrated, coming into the hands of the Redemptorist order. The Gothic choir windows were taken to Laxenburg in Lower Austria and installed in Franzensburg castle. The church was further restored in 1900 and again in 1930, mainly involving the figures in the portico.