table cf delete

Deletes a column family from a MapR-DB binary table or JSON table. 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>
NOTE: The mapr user is not treated as a superuser. MapR-DB does not allow the mapr user to run this command unless that user is given the relevant permission or permissions with access-control expressions.

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.

NOTE: In JSON tables, it is not possible to delete the default column family.

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