Jump to Content
js-dataQuick StartAPI Reference
HomeQuick StartChangelogDiscussions
Quick StartAPI ReferenceLog Injs-data
Quick Start
Log In
DS#clear

Guides

  • Announcements
  • Getting Started with JSData
  • Slack Channel
  • Installation
  • Upgrading to JSData 2.0
  • MtnWestJS 2015 Presentation
  • Examples
  • Resources/Models
  • Working with the Data Store
  • Adapters
  • Model Lifecycle
  • Events
  • Custom Instance Behavior
  • Computed Properties
  • Query Syntax
  • Relations
  • Validation
  • JSData on the Server
  • Angular + JSData
  • FAQ
  • Support

Community

  • Explore the Community
  • Contributing
  • Mailing List
  • Issues

Adapters

  • DSFirebaseAdapter
  • DSHttpAdapter
  • DSLocalForageAdapter
  • DSLocalStorageAdapter
  • DSMongoDBAdapter
  • DSRethinkDBAdapter
  • DSRedisAdapter
  • DSLevelUpAdapter
  • DSSqlAdapter
  • DSNedbAdapter

js-data-schema

  • Schemator API

DS API

  • DS
  • Configuration
  • DS#changeHistory
  • DS#changes
  • DS#clear
  • DS#compute
  • DS#create
  • DS#createCollection
  • DS#createInstance
  • DS#defineResource
  • DS#destroy
  • DS#destroyAll
  • DS#digest
  • DS#eject
  • DS#ejectAll
  • DS#filter
  • DS#find
  • DS#findAll
  • DS#get
  • DS#getAll
  • DS#hasChanges
  • DS#inject
  • DS#is
  • DS#lastModified
  • DS#lastSaved
  • DS#loadRelations
  • DS#previous
  • DS#reap
  • DS#refresh
  • DS#refreshAll
  • DS#revert
  • DS#save
  • DS#update
  • DS#updateAll
Powered by 

DS#clear

DS#clear()

Suggest Edits

This method calls DS#ejectAll() on every Resource registered with the store, and returns the ejected items.

📘

Need help?

Want more examples or have a question? Ask on the Slack channel or post on the mailing list then we'll get your question answered and probably update this wiki.

Updated less than a minute ago