({{, (RefLink[InitializationObjects, paclet:ref/InitializationObjects])[] 
gives the list of all persistent initialization objects in all locations in (RefLink[$PersistencePath, paclet:ref/$PersistencePath]).}, {, (RefLink[InitializationObjects, paclet:ref/InitializationObjects])["patt"]
gives all persistent initialization objects for symbols matching the string pattern "patt".}, {, (RefLink[InitializationObjects, paclet:ref/InitializationObjects])["patt",loc]
gives all matching persistent initialization objects in the persistence location loc.}, {, (RefLink[InitializationObjects, paclet:ref/InitializationObjects])["patt",{(Subscript[loc, 1]),…}]
gives all matching persistent initialization objects in all the (Subscript[loc, i]).}})

OpenersNotesSection(Spacer1)Details and Options

(RefLink[InitializationObjects, paclet:ref/InitializationObjects]) has the option (RefLink[EvaluationEnvironment, paclet:ref/EvaluationEnvironment]), which specifies for which evaluation environment initialization objects should be given. The default setting is (RefLink[EvaluationEnvironment, paclet:ref/EvaluationEnvironment]):>(RefLink[$EvaluationEnvironment, paclet:ref/$EvaluationEnvironment]).

In (RefLink[InitializationObjects, paclet:ref/InitializationObjects])["patt",loc], possible forms for the persistence location loc include:

(RefLink[InitializationObjects, paclet:ref/InitializationObjects])[(RefLink[All, paclet:ref/All]),loc] gives all objects in the location or locations loc.

The result of (RefLink[InitializationObjects, paclet:ref/InitializationObjects]) is a list of the form {(Subscript[sym, 1])->{(Subscript[obj, 1]),…},…}, where the list of objects contains all persistent objects that contain an initialization for the symbol (Subscript[sym, 1]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (5)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

List the existing initialization values in all editable persistence locations:

InitializationObjects[All,{"FrontEndSession","Local","Notebook","Cloud"}]

OpenersExampleSection1(Spacer1)Scope  (2)

List all initializations in a particular persistence location:

InitializationObjects[All,"Local"]

List all initializations for a particular symbol in all persistence locations on (RefLink[$PersistencePath, paclet:ref/$PersistencePath]):

InitializationObjects[Global`myvar]

OpenersExampleSection2(Spacer1)Options  (1)

OpenersExampleSubsection0(Spacer1)EvaluationEnvironment  (1)

List all initializations defined for subkernels:

InitializationObjects[All,EvaluationEnvironment->"Subkernel"]

OpenersExampleSection3(Spacer1)Applications  (1)

List the existing initialization values in all editable persistence locations:

InitializationObjects[All,{"FrontEndSession","Local","Notebook","Cloud"}]

Remove them:

DeleteObject[Values/@%]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[InitializationValue, paclet:ref/InitializationValue])  ▪  (RefLink[PersistentObjects, paclet:ref/PersistentObjects])  ▪  (RefLink[PersistenceLocation, paclet:ref/PersistenceLocation])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Setting Persistent Values, paclet:guide/SettingPersistentValues])}, {▪(RefLinkPlain[Initialization & Provisioning, paclet:guide/InitializationAndProvisioning])}, {▪(RefLinkPlain[Persistent Storage, paclet:guide/PersistentStorage])}})}})