Removes a preference value.

@param key The name of the preference to remove.
@see android.content.SharedPreferences.Editor#remove(String)
773785
public static void remove(final String key) {
        SharedPreferences prefs = getPreferences();
        final Editor editor = prefs.edit();
        if (prefs.contains(key + LENGTH)) {
            // Workaround for pre-HC's lack of StringSets
            int stringSetLength = prefs.getInt(key + LENGTH, -1);
            if (stringSetLength >= 0) {
                editor.remove(key + LENGTH);
                for (int i = 0; i < stringSetLength; i++) {
                    editor.remove(key + "[" + i + "]");
                }
            }
        }
        editor.remove(key);

        editor.apply();
    }
771297
@Override
	public void removeProperty(Object key) {
	    if(key.equals(APIKey.ZONE))    
	    	return;
	    getZone().removeProperty(key);
	}
390953
@Override
	public String remove(final Object key) {
		String result = propsMap.remove(key);
		if (defaults != null) {
			String s = defaults.remove(key);
			if (result == null) {
				result = s;
			}
		}
		return result;
	}
925082
@Override
    public synchronized void remove(String key) {
        boolean deleted = getFileForKey(key).delete();
        removeEntry(key);
        if (!deleted) {
            //todo add queue markers
//            JusLog.d("Could not delete cache entry for key=%s, filename=%s",
//                    key, getFilenameForKey(key));
        }
    }
737251
public void remove(Object key) {
		for (Scope cur=this; cur!=null; cur=cur.parent) {
			if (cur.data != null && cur.data.containsKey(key)) {
				cur.data.remove(key);
				return ;
			}
		}
	}
232909
public void removeProp(String key) {
    this.specProperties.remove(key);
    if (this.commonProperties.containsKey(key)) {
      // This case should not happen.
      Properties commonPropsCopy = new Properties();
      commonPropsCopy.putAll(this.commonProperties);
      commonPropsCopy.remove(key);
      this.commonProperties = commonPropsCopy;
    }
  }
1222474
@SuppressWarnings("unchecked")
	public <T> T deleteContextualValue(String key) {
		return (T) this.values.remove(key);
	}
797643
public void removeTextSearchParameter(String key) {

        try {
            ParamType type = ParamType.valueOf(key);
            switch (type) {
                case language:
                    m_searchObject.setLocale(getStartLocale());
                    break;
                case text:
                    m_searchObject.setQuery(null);
                    break;
                case expired:
                    m_searchObject.setIncludeExpired(false);
                    break;
                case creation:
                    m_searchObject.setDateCreatedEnd(-1L);
                    m_searchObject.setDateCreatedStart(-1L);
                    break;
                case modification:
                    m_searchObject.setDateModifiedEnd(-1L);
                    m_searchObject.setDateModifiedStart(-1L);
                    break;
                default:
            }
            m_handler.onRemoveSearchParam(type);
            updateResultsTab(false);
            ValueChangeEvent.fire(this, m_searchObject);
        } catch (IllegalArgumentException e) {
            // should not happen
        }
    }
415822
public static void removeValue(String registryName, String key) {
		Sysprop registryObject = readRegistryObject(registryName);
		if (registryObject == null || StringUtils.isBlank(key)) {
			return;
		}
		if (registryObject.hasProperty(key)) {
			registryObject.removeProperty(key);
			CoreUtils.getInstance().getDao().update(REGISTRY_APP_ID, registryObject);
		}
	}
310525
public static void removeCustomDeviceData(final String key) {
		dispatchConversationTask(new ConversationDispatchTask() {
			@Override
			protected boolean execute(Conversation conversation) {
				conversation.getDevice().getCustomData().remove(key);
				return true;
			}
		}, "remove custom device data");
	}
934750
public void removeIgnoreCase(String key) {
        int i = indexOfKeyIgnoreCase(key);
        if (i != NotFound)
            remove(i);
    }
487781
@SuppressWarnings("unchecked")
    public void removeProperty(Object obj, Object key) {
        if (isMap(obj))
            ((Map) obj).remove(key.toString());
        else {
            List list = (List) obj;
            int index = key instanceof Integer ? (Integer) key : Integer.parseInt(key.toString());
            list.remove(index);
        }
    }
302737
@SuppressWarnings("unchecked")
    @Override
    public final <T> T remove(final IKey<T> key) {
        return (T) config.remove(key.key());
    }
1042451
public static void setCurrentPreferenceKey(String key) {
		LOCK.lock();
		try {
			currentPreferenceKey = (Strings.isNullOrEmpty(key)) ? DEFAULT_PREFERENCE_KEY : key;
		} finally {
			LOCK.unlock();
		}
	}
560603
public void putInt(String key, int value) {
		sharedPreferences.edit().putInt(key, value).commit();
	}
1239828
public synchronized void remove(final String key) {
		try {
			list.remove(key);
		} catch (Exception e) {
			log.log(Level.SEVERE, "remove", e);
		}
		super.remove(key);
	}
1015937
@Deprecated
    public void removeValueForKey(final String key) {
        CleverTapAPI cleverTapAPI = weakReference.get();
        if (cleverTapAPI == null) {
            Logger.d("CleverTap Instance is null.");
        } else {
            cleverTapAPI.removeValueForKey(key);
        }
    }