POST
/
v1
/
tenants
/
{tenant_id}
/
data
/
delete
rr, err: = client.Data.Delete(context.Background(), & v1.DataDeleteRequest {
    TenantId: "t1",
    Metadata: &v1.DataDeleteRequestMetadata {
        SnapToken: ""
    },
    TupleFilter: &v1.TupleFilter {
        Entity: &v1.EntityFilter {
        Type: "organization",
        Ids: []string {"1"} ,
    },
    Relation: "admin",
    Subject: &v1.SubjectFilter {
        Type: "user",
        Id: []string {"1"},
        Relation: ""
    }}
})

Path Parameters

tenant_id
string
required

Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \“[a-zA-Z0-9-,]+\“, max 64 bytes.

Body

application/json
tuple_filter
object

TupleFilter is used to filter tuples based on the entity, relation and the subject.

attribute_filter
object

AttributeFilter is used to filter attributes based on the entity and attribute names.

Response

200 - application/json
snap_token
string

The snap token to avoid stale cache, see more details on Snap Tokens