secured delete api & saperate delete function into directive & make auth service