Sanity Library Reference Docs
    Preparing search index...

    Variable delConst

    del: (id: string) => DeleteMutation = delete_

    Alias for delete

    Type declaration

      • (id: string): DeleteMutation
      • Deletes a document.

        Parameters

        • id: string

          The id of the document to be deleted.

        Returns DeleteMutation

        The mutation operation to delete the document.