Auch hierfür gibts API's:

iSeries NetServer API guides

In diesem Fall Remove Server Share (QZLSRMS) API