def deactivate(self):
        """Deactivate the subarray."""
        DB.set_hash_value(self._key, 'active', 'False')
        # Remove the subarray from each of the SBIs
        for sbi_id in self.sbi_ids:
            SchedulingBlockInstance(sbi_id).clear_subarray()
        DB.set_hash_value(self._key, 'sbi_ids', [])
        self.publish('subarray_deactivated')
Deactivate the subarray.