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.
|
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