---
id: os_erase_contents_and_settings_disable
title: Ensure Allow Erase All Content and Settings is set to Disabled
discussion: |
  Erase all contents and settings _MUST_ be disabled on institutionally owned devices.
references:
  nist:
    cce:
      macos_27:
        - CCE-XXXXX-X
      macos_26:
        - CCE-95185-5
      macos_15:
        - CCE-94185-6
      macos_14:
        - CCE-92785-5   
      ios_27:
        - CCE-XXXXX-X   
      ios_26:
        - CCE-95460-2
      ios_18:
        - CCE-94437-1
      ios_17:
        - CCE-93422-4
      visionos_27:
        - CCE-XXXXX-X
      visionos_26:
        - CCE-95572-4
    800-53r5:
      - CM-6
      - CM-7
      - CM-7(1)
    800-171r3:
      - 03.04.06      
  disa:
    cci:
      - CCI-000366
      - CCI-000381
    srg:
      - SRG-OS-000480-GPOS-00227
      - SRG-OS-000095-GPOS-00049      
    disa_stig:
      macos_26:
        - APPL-26-005061
      macos_15:
        - APPL-15-005061
      macos_14:
        - APPL-14-005061    
      ios_26:
        - AIOS-26-016000
      ios_18:
        - AIOS-18-016000
      visionos_26:
        - AVOS-26-016000
    sfr:
      - 'FMT_SMF.1.1 #47'
    cmmc:
      - AU.L2-3.3.3
      - CM.L2-3.4.1
      - CM.L2-3.4.2
      - CM.L2-3.4.6
      - CM.L2-3.4.7
      - CM.L2-3.4.6
      - CM.L2-3.4.7
  cis:
    benchmark:
      ios_26:
        - 3.2.1.12 (level 1 - Institutionally-Owned Devices)
      ios_18:
        - 3.2.1.12 (level 1 - Institutionally-Owned Devices)
      ios_17:
        - 3.2.1.12 (level 1 - Institutionally-Owned Devices)
    controls_v8:
      - 4.1
  hhs:
    hicp:
      - 2.L.A      
platforms:
  macOS:
    '27.0': {}
    '26.0':
      benchmarks:
        - name: disa_stig
          severity: medium
    '15.0':
      benchmarks:
        - name: disa_stig
          severity: medium
    enforcement_info:
      check:
        shell: |-
          /usr/bin/osascript -l JavaScript << EOS
          $.NSUserDefaults.alloc.initWithSuiteName('com.apple.applicationaccess')\
          .objectForKey('allowEraseContentAndSettings').js
          EOS
        result:
          string: 'false'
    introduced: '12.0'
  iOS:
    '27.0': {}
    '26.0':
      supervised: true
      benchmarks:
        - name: cis_lvl1_enterprise
        - name: cis_lvl2_enterprise
        - name: ios_stig
    '18.0':
      supervised: true
      benchmarks:
        - name: cis_lvl1_enterprise
        - name: cis_lvl2_enterprise
        - name: ios_stig
    '17.0':
      supervised: true
      benchmarks:
        - name: cis_lvl1_enterprise
        - name: cis_lvl2_enterprise
    introduced: '8.0'
  visionOS:
    '27.0': {}
    '26.0':
      supervised: true
      benchmarks:
        - name: visionos_stig
          severity: medium
    introduced: '2.0'
tags:
  - 800-53r5_low
  - 800-53r5_moderate
  - 800-53r5_high
  - cisv8
  - cmmc_lvl2
  - cmmc_lvl3
  - cnssi-1253_moderate
  - cnssi-1253_low
  - cnssi-1253_high
  - hicp_lp
  - 800-171  
mobileconfig_info:
  - PayloadType: com.apple.applicationaccess
    PayloadContent:
      - allowEraseContentAndSettings: false
