Replaced shell rm with php unlink.