@Override
                public DeleteStatusMetaData invoke() throws AmbariException {
                  if (stackEntity != null) {
                    repositoryVersionDAO
                      .removeByStack(new StackId(stackEntity.getStackName() + "-" + stackEntity.getStackVersion()));
                    stackDAO.removeByMpack(mpackId);
                    notifyDelete(Resource.Type.Stack, predicate);
                  }
                  mpackDAO.removeById(mpackId);

                  return new DeleteStatusMetaData();
                }
Validates the request body for the required properties in order to create an Mpack resource.

@param mpackRequest
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/MpackResourceProvider.java