Delete a column family from a MapR-DB table, removing all records in the column family. Deletion cannot be undone.

Syntax

CLI

maprcli table cf delete
    -path <path>
    -cfname <name>

REST

http[s]://<host>:<port>/rest/table/cf/delete?path=<path>&cfname=<name>

Parameters

Parameter

Description

path

The path to the table.

  • For a path on the local cluster, start the path at the volume mount point. For example, for a table named test under volume1 which has a mount point at /volume1, specify the following path: /volume1/test
  • For a path on a remote cluster, you must also specify the cluster name in the path. For example, for a table named test under volume1 in the sanfrancisco cluster, specify the following path:/mapr/sanfrancisco/volume1/customer

cfname

The name of the column family to delete.

Examples

Deleting a column family

CLI

maprcli table cf delete -path /volume1/thetable -cfname mycf

REST

https://r1n1.sj.us:8443/rest/table/cf/edit?path=%2Fvolume1%2Fthetable&cfname=mycf