Wrote deleteProject function