# Pull Values

Remove specific values from an array using lodash _.pull

> Canonical page: https://elysiatools.com/en/tools/pull-values

- **Category:** Data Processing

- **Keywords:** array, pull, remove, values, filter, lodash

## Overview

Remove all occurrences of specified values from an array.

**Highlights:**
- Uses lodash `_.pull`
- Accepts values to remove as a JSON array
- Optional case-insensitive matching for string arrays

**Example:**
- Array: `[1, 2, 2, 3]`
- Values: `[2]`
- Result: `[1, 3]`

## Inputs

- **Array** (textarea): Enter a JSON array
- **Values to Remove** (textarea): JSON array of values to remove
- **Case Sensitive** (checkbox): Uncheck for case-insensitive string matching

## When to use

- When cleaning data arrays by removing null, duplicate, or erroneous entries.
- For filtering lists in programming or data processing to exclude specific elements.
- To manage arrays by deleting unwanted values efficiently in workflows.

## How it works

- Input your array as a JSON array in the 'Array' field.
- Specify the values to remove as a JSON array in the 'Values to Remove' field.
- Optionally uncheck 'Case Sensitive' for case-insensitive string matching.
- The tool processes the input and returns the modified array with values removed.

## Use cases

- Data preprocessing: Remove placeholder or error values from datasets for accurate analysis.
- Application development: Filter out banned words or spam entries from user input arrays.
- Inventory management: Delete discontinued items from product lists to maintain updated records.

## Frequently asked questions

### What does this tool do?

It removes all instances of specified values from an input array using lodash _.pull.

### Can it handle non-JSON inputs?

No, both the array and values must be valid JSON arrays.

### Is case sensitivity enabled by default?

Yes, string matching is case-sensitive by default; uncheck the option for case-insensitive removal.

### What types of values can be removed?

Any JSON-compatible values, such as numbers, strings, or objects.

### Does it modify the original array?

No, it returns a new array with the specified values removed, leaving the input unchanged.

## Related tools

- [Compact Array](https://elysiatools.com/en/tools/compact-array): Remove falsey values from array using lodash _.compact
- [BOM Character Remover](https://elysiatools.com/en/tools/data-bom-remover): Remove BOM (Byte Order Mark) characters from text and file content. Perfect for cleaning up text files that have encoding issues, fixing CSV imports, and preparing data for processing. Features: - Detect and remove UTF-8 BOM (EF BB BF) - Detect and remove UTF-16 BOM (FE FF or FF FE) - Detect and remove UTF-32 BOM (00 00 FE FF or FF FE 00 00) - Support multiple input formats - Visual BOM character display - Detailed detection report - Support for batch text processing Common Use Cases: - Fix CSV file import errors - Clean up text file encoding issues - Prepare data for JSON parsing - Fix XML parsing problems - Resolve API data encoding conflicts - Standardize text data format
- [Drop Items](https://elysiatools.com/en/tools/drop-items): Drop first N items from array using lodash _.drop
- [Drop Right Items](https://elysiatools.com/en/tools/drop-right-items): Drop last N items from array using lodash _.dropRight
- [Sorted Unique](https://elysiatools.com/en/tools/sorted-unique): Remove duplicates from a sorted array using lodash _.sortedUniq
- [Sorted Unique By](https://elysiatools.com/en/tools/sorted-unique-by): Remove duplicates from a sorted array using lodash _.sortedUniqBy
- [Uniq Array](https://elysiatools.com/en/tools/uniq-array): Remove duplicates from an array using lodash _.uniq
- [Uniq By](https://elysiatools.com/en/tools/uniq-by): Remove duplicates from an array using lodash _.uniqBy with a property path

## Samples

- [QR Code Samples](https://elysiatools.com/en/samples/qrcode-samples): Sample QR code images for testing QR code reading and generation tools
- [Distributed Tracing Samples](https://elysiatools.com/en/samples/distributed-tracing-samples): Comprehensive distributed tracing examples using Jaeger, OpenTelemetry, and other modern observability tools for microservices architecture
- [ELK Stack Log Analysis Samples](https://elysiatools.com/en/samples/elk-stack-samples): Comprehensive ELK Stack (Elasticsearch, Logstash, Kibana) samples for log aggregation, processing, and visualization in distributed systems
- [Grafana Advanced Application Samples](https://elysiatools.com/en/samples/grafana-samples): Comprehensive Grafana samples covering advanced dashboard design, alerting configurations, data source integrations, and plugin development
