# db.command.remove

Update command. Deletes the specified field.

Function signature:

function remove(): Command

Sample code

Delete the style field:

const _ = db.command
db.collection('todos').doc('todo-id').update({
  data: {
    style: _.remove()
  }
})
点击咨询小助手