Create delete project function