Removes all matching entries under the default transaction from the space.
            
- template (Object)
 - The template/query used for matching.
 
Number of removed entries.
| Exception | Condition | 
|---|---|
| ClearException | The operation had a failure. | 
| Exception | Condition | 
|---|---|
| ClearException | The operation had a failure. |