Clears the entire index. If ``using`` is provided, it specifies which connection should be used. Default relies on the routers to decide which backend should be used.
(self, using=None)
| 338 | backend.remove(instance, **kwargs) |
| 339 | |
| 340 | def clear(self, using=None): |
| 341 | """ |
| 342 | Clears the entire index. |
| 343 | |
| 344 | If ``using`` is provided, it specifies which connection should be |
| 345 | used. Default relies on the routers to decide which backend should |
| 346 | be used. |
| 347 | """ |
| 348 | backend = self.get_backend(using) |
| 349 | |
| 350 | if backend is not None: |
| 351 | backend.clear(models=[self.get_model()]) |
| 352 | |
| 353 | def reindex(self, using=None): |
| 354 | """ |
no test coverage detected