@Override
	public boolean deleteBySelector(ApiClient apiClient, String selector, boolean label, String namespace, boolean wait)
			throws HyscaleException {

		try {
			List<V1beta2StatefulSet> statefulSets = getBySelector(apiClient, selector, label, namespace);

			if (statefulSets == null || statefulSets.isEmpty()) {
				return false;
			}
			for (V1beta2StatefulSet statefulSet : statefulSets) {
				delete(apiClient, statefulSet.getMetadata().getName(), namespace, wait);
			}
		} catch (HyscaleException e) {
			if (DeployerErrorCodes.RESOURCE_NOT_FOUND.equals(e.getHyscaleError())) {
				return false;
			}
			throw e;
		}
		return true;

	}
@param apiClient
@param name
@param namespace
@return true if pods needs to be deleted
@throws HyscaleException
deployer/deployer-services/src/main/java/io/hyscale/deployer/services/handler/impl/V1beta2StatefulSetHandler.java