Removes a document/object from the backend. Can be either a model instance or the identifier (i.e. ``app_name.model_name.id``) in the event the object no longer exists. This method MUST be implemented by each backend, as it will be highly specific to each on
(self, obj_or_string)
| 92 | raise NotImplementedError |
| 93 | |
| 94 | def remove(self, obj_or_string): |
| 95 | """ |
| 96 | Removes a document/object from the backend. Can be either a model |
| 97 | instance or the identifier (i.e. ``app_name.model_name.id``) in the |
| 98 | event the object no longer exists. |
| 99 | |
| 100 | This method MUST be implemented by each backend, as it will be highly |
| 101 | specific to each one. |
| 102 | """ |
| 103 | raise NotImplementedError |
| 104 | |
| 105 | def clear(self, models=None, commit=True): |
| 106 | """ |
no outgoing calls
no test coverage detected