code: public Date[] purgeDatastream(Context context,
                                    String pid,
                                    String datastreamID,
                                    Date startDT,
                                    Date endDT,
                                    String logMessage) throws ServerException {
          throw rejectCallsFromOutsideWhileInRecoveryMode();
      }
docs: Reject API calls from outside while we are in recovery mode.