Create delete project task function