Skip to content

DeleteRecord

Source: src/AWS/SageMaker/DeleteRecord.ts

Runtime binding for sagemaker:DeleteRecord — delete a record from a FeatureGroup’s online store.

Bind this operation to a FeatureGroup inside a function runtime to get a callable that automatically injects the feature group name. The default SoftDelete mode nulls the feature columns; HardDelete removes the record entirely. EventTime must be later than the stored record’s event time for the deletion to take effect.

// init
const deleteRecord = yield* AWS.SageMaker.DeleteRecord(featureGroup);
// runtime
yield* deleteRecord({
RecordIdentifierValueAsString: "user-123",
EventTime: new Date().toISOString(),
});