Use clearapccache script as template