# US 2021/0081357 A1 · Data deletion system and method

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0081357 A1
- Document ID: US20210081357A1
- Status: Published application
- Kind: A1
- Application number: 17/022,370
- Filed: 2020-09-16
- Published: 2021-03-18
- Earliest claimed: 2019-09-16
- Assignees: Palantir Technologies Inc.
- Applicants: Palantir Technologies Inc.
- Inventors: Rahij Ramsharan; Alexis Daboville
- Web page: https://patentgrep.com/patent/US20210081357A1

## CPC

- G06F 16/125: {characterised by the use of retention policies (retention policies for HSM systems G06F16/185)}
- G06F 16/162: {Delete operations (erasing in storage systems G06F3/0652)}
- G06F 16/215: Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Apparatus and methods receive input descriptive of a retention policy; evaluate one or more datasets against the retention policy to determine one or more deletable data elements in the one or more datasets; and delete the one or more deletable data elements from a data store.

## Claims

### Claim 1

A method, performed by one or more processors, comprising:
receiving input descriptive of a retention policy;
evaluating one or more datasets against the retention policy to determine one or more deletable data elements in the one or more datasets; and
deleting the one or more deletable data elements from a data store.

### Claim 2 (depends on 1)

The method of claim 1, wherein the input descriptive of the retention policy comprises policy expression language code.

### Claim 3 (depends on 2)

The method of claim 2, wherein evaluating the dataset against the retention policy comprises:
selecting a first one or more data elements from the one or more datasets using a first part of the policy expression language code; and
selecting a second one or more data elements from the first one or more data elements using a second part of the policy expression language code.

### Claim 4 (depends on 3)

The method of claim 3, wherein the one or more deletable data elements is or are a subset of the second one or more data elements.

### Claim 5 (depends on 3)

The method of claim 3 wherein the first part of the policy expression language code comprises one or more dataset selectors and the second part of the policy expression language code comprises one or more transaction selectors.

### Claim 6 (depends on 1)

The method of claim 1 wherein deleting the one or more deletable data elements comprises:
associating a marked property with each of the one or more deletable data elements, wherein the marked property indicates that the respective data element is deletable; and
subsequent to the associating, deleting, from the data store, a plurality of marked data elements, wherein the plurality of marked data elements are associated with the marked property and the plurality of marked data elements comprises the one or more deletable data elements.

### Claim 7 (depends on 6)

The method of claim 6, wherein deleting the plurality of marked data elements comprises, for each partition of a plurality of partitions of the data store:
deleting, from the partition, a respective set of one or more marked data elements of the plurality of marked data elements, wherein the respective set of one or more marked data elements are stored on the partition prior to deletion.

### Claim 8 (depends on 7)

The method of claim 7, wherein each of the sets of one or more marked data elements is constrained from including more than a maximum number of data elements.

### Claim 9 (depends on 7)

The method of claim 7 wherein, for each partition of the plurality of partitions of the data store, the respective set of one or more marked data elements are the largest one or more marked data elements stored in the partition.

### Claim 10 (depends on 9)

The method of claim 9, wherein, for each partition of the plurality of partitions, the largest one or more marked data elements stored in the partition is or are determined by:
for each marked data element of the one or more marked data elements stored in the partition, adding, to a sorted collection data structure, an identifier of the marked data element in association with an indication of the size of the marked data element, and optionally wherein the sorted collection data structure is a tree set.

### Claim 11 (depends on 6)

The method of claim 6 wherein deleting the plurality of marked data elements uses a plurality of coroutines.

### Claim 12 (depends on 1)

The method of claim 1 wherein deleting the one or more deletable data elements comprises:
attempting a deletion of a data element of the one or more deletable data elements; and
in response to not receiving, within a first certain time period after attempting the deletion, a message indicating the success of the deletion, reattempting the deletion of the data element.

### Claim 13 (depends on 12)

The method of claim 12, wherein deleting the one or more deletable data elements further comprises:
prior to attempting the deletion of the data element, adding an identifier of the data element to a collection data structure;
subsequent to reattempting the deletion, receiving a message within a second certain time period after reattempting the deletion; and
removing the identifier of the data element from the list,
and, optionally, the first time period and the second time period are of equal lengths.

### Claim 14 (depends on 1)

The method of claim 1 wherein deleting data elements from the data store is an idempotent operation.

### Claim 15

An apparatus comprising one or more processors configured to:
receive input descriptive of a retention policy;
evaluate one or more datasets against the retention policy to determine one or more deletable data elements in the one or more datasets; and
delete the one or more deletable data elements from a data store.

### Claim 16 (depends on 15)

The apparatus of claim 15, wherein the input descriptive of the retention policy comprises policy expression language code.

### Claim 17 (depends on 16)

The apparatus of claim 16 wherein evaluating the dataset against the retention policy comprises:
selecting a first one or more data elements from the one or more datasets using a first part of the policy expression language code; and
selecting a second one or more data elements from the first one or more data elements using a second part of the policy expression language code.

### Claim 18 (depends on 17)

The apparatus of claim 17, wherein the one or more deletable data elements is or are a subset of the second one or more data elements.

### Claim 19 (depends on 17)

The apparatus of claim 17 wherein the first part of the policy expression language code comprises one or more dataset selectors and the second part of the policy expression language code comprises one or more transaction selectors.

### Claim 20

A non-transitory computer readable medium comprising executable code stored therein, which, when executed by one or more processors of a data processing apparatus cause the data processing apparatus to:
receive input descriptive of a retention policy;
evaluate one or more datasets against the retention policy to determine one or more deletable data elements in the one or more datasets; and
delete the one or more deletable data elements from a data store.
