diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/interceptor/api/Pointcut.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/interceptor/api/Pointcut.java
index fcac3de9935..d3b6843a960 100644
--- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/interceptor/api/Pointcut.java
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/interceptor/api/Pointcut.java
@@ -1166,11 +1166,15 @@ public enum Pointcut {
/**
* Invoked before a resource is about to be expunged via the $expunge
operation.
*
+ * Hooks will be passed a reference to a counter containing the current number of records that have been deleted.
+ * If the hook deletes any records, the hook is expected to increment this counter by the number of records deleted.
+ *
+ *
* Hooks may accept the following parameters:
*
*
* - org.hl7.fhir.instance.model.api.IIdType - The ID of the resource that is about to be deleted
- * - org.hl7.fhir.instance.model.api.IBaseResource - The resource that is about to be deleted
+ * - java.util.concurrent.atomic.AtomicInteger - The counter holding the number of records deleted.
* -
* ca.uhn.fhir.rest.api.server.RequestDetails - A bean containing details about the request that is about to be processed, including details such as the
* resource type and logical ID (if any) and other FHIR-specific aspects of the request which have been
@@ -1189,12 +1193,12 @@ public enum Pointcut {
* Hooks should return void.
*
*/
- STORAGE_PRESTORAGE_EXPUNGE_RESOURCE(
+ STORAGE_PRESTORAGE_EXPUNGE_RESOURCE (
// Return type
void.class,
// Params
+ "java.util.concurrent.atomic.AtomicInteger",
"org.hl7.fhir.instance.model.api.IIdType",
- "org.hl7.fhir.instance.model.api.IBaseResource",
"ca.uhn.fhir.rest.api.server.RequestDetails",
"ca.uhn.fhir.rest.server.servlet.ServletRequestDetails"
),