$ tes3cmd modify "Magical Missions.ESP" --exact-id "ald velothi (-11, 15)" --run "\$R->set({i=>[1], f=>'Flags'}, '70')"
MODIFIED RECORD:
Record: CELL "ald velothi (-11, 15)" Flags:0x0000 ()
  NAME: Name:Ald Velothi
  DATA: (Exterior) Coordinates: (-11, 15)  Flags:0x0046 (Has_Water, Illegal_To_Sleep_Here)
  RGNN: Region:West Gash Region
  NAM5: Color:6333898
 *FRMR: ObjIdx:287924  MastIdx:1
  NAME: Name:Vireveri Darethran
  DATA: X:-82812.320  Y:122907.430  Z:-1082.933  X_Angle:0.0000  Y_Angle:0.0000  Z_Angle:4.3832
 *FRMR: ObjIdx:15  MastIdx:0
  NAME: Name:Ex_De_Shack_Door
  DODT: X:4183.22  Y:4038.27  Z:15896.59  X_Angle:0.00  Y_Angle:0.00  Z_Angle:4.98
  DNAM: Destination:Ald Velothi, Soris Romayn's Shack
  DATA: X:-85245.711  Y:127944.688  Z:297.042  X_Angle:0.0000  Y_Angle:0.0000  Z_Angle:0.2000
  NAM0: Reference_Count:2
 *FRMR: ObjIdx:16  MastIdx:0
  NAME: Name:ex_de_shack_05
  DATA: X:-85152.008  Y:128124.695  Z:90.055  X_Angle:0.0000  Y_Angle:0.0000  Z_Angle:1.7708
 *FRMR: ObjIdx:17  MastIdx:0
  NAME: Name:ex_de_shack_awning_06
  DATA: X:-85251.094  Y:127860.094  Z:334.592  X_Angle:0.0000  Y_Angle:0.0000  Z_Angle:1.8000
Output saved in: "Magical Missions.ESP"
Original backed up to: "Magical Missions~1.ESP"
$ tes3cmd clean "Magical Missions.ESP" --replace

CLEANING: "Magical Missions.ESP" ...
Loaded cached Master: <DATADIR>/morrowind.esm
Loaded cached Master: <DATADIR>/tribunal.esm
Loaded cached Master: <DATADIR>/bloodmoon.esm
 Cleaned duplicate record (NPC_): falanu indaren
 Cleaned duplicate object instance (chargen barrel fatigue FRMR: 172851) from CELL: seyda neen (-2, -9)
 Cleaned junk-CELL: west gash region (-11, 16)
 Cleaned junk-CELL: west gash region (-11, 14)
 Cleaned junk-CELL: bitter coast region (-12, 3)
 Cleaned junk-CELL: bitter coast region (-12, 2)
 Cleaned junk-CELL: bitter coast region (-12, 1)
 Cleaned junk-CELL: bitter coast region (-13, 4)
 Cleaned junk-CELL: bitter coast region (-13, 3)
 Cleaned junk-CELL: bitter coast region (-13, 2)
 Cleaned junk-CELL: bitter coast region (-13, 1)
 Cleaned junk-CELL: bitter coast region (-14, 5)
 Cleaned junk-CELL: bitter coast region (-14, 4)
 Cleaned junk-CELL: bitter coast region (-14, 2)
 Cleaned junk-CELL: west gash region (-15, 7)
 Cleaned junk-CELL: wilderness (-15, -8)
 Cleaned junk-CELL: west gash region (-16, 8)
 Cleaned junk-CELL: west gash region (-16, 7)
 Cleaned redundant WHGT from CELL: akimaes grotto
 Cleaned redundant AMBI,WHGT from CELL: lleran ancestral tomb
 Cleaned redundant AMBI,WHGT from CELL: moonmoth legion fort, prison towers
 Cleaned redundant AMBI,WHGT from CELL: pelagiad, south wall
 Cleaned redundant AMBI,WHGT from CELL: vivec, hlaalu vaults
 Cleaned junk-CELL: wilderness (-19, 15)
 Cleaned junk-CELL: wilderness (-19, 14)
 Cleaned junk-CELL: wilderness (-20, 15)
 Cleaned junk-CELL: wilderness (-28, 24)
 Cleaned junk-CELL: wilderness (-29, 23)
Output saved in: "Magical Missions.ESP"
Original backed up to: "Magical Missions~2.ESP"

Cleaning Stats for "Magical Missions.ESP":
       duplicate object instance:     1
                duplicate record:     1
                       junk-CELL:    21
             redundant CELL.AMBI:     4
             redundant CELL.WHGT:     5

$ tes3cmd delete --type cell --no-match 'FRMR' "Magical Missions.ESP"
DELETED: CELL seyda neen (-2, -9)
Output saved in: "Magical Missions.ESP"
Original backed up to: "Magical Missions~3.ESP"
