By default, when you run an object query in a non-versioned repository, the Repository Service returns reusable objects.
When you run an object query in a versioned repository, the Repository Service returns objects that meet the following criteria:
Versioned objects are the latest version, either local checked-out versions or checked-in versions.
Non-versioned objects that are saved to the repository.
Objects are reusable.
Objects that are not deleted.
If you have a versioned repository and you want to view deleted or older objects, you must specify these values in the query parameter. You can search for deleted objects using the deleted value in the Version Status parameter. You can search for older versions of objects when you specify the older value in the Latest Status query parameter.
If you run a query without specifying any query condition, the query returns reusable objects in the repository.