eRS Actions icon

eRS Actions

Interact with the Ers App API

Resource → Delete

AI-generated

Summary

Deletes a single resource in eRS by its numeric ID, optionally also deleting associated bookings, rates, and timesheet entries.

Inputs

  • Authentication — Credential type: OAuth2 (recommended, default) or Access Token.
  • Resource ID (required) — Unique numeric ID (minimum 1) of the resource to delete.
  • Force Delete Options — Collection of boolean flags, all default false: Force Delete Bookings, Force Delete Rates, Force Delete Timesheet Entries. Each also removes the associated records of that type.
  • Request Options — Node settings: batching (items per batch, default 50; batch interval, default 1000 ms), ignore SSL issues, HTTP proxy, and timeout (default 10000 ms).

Output shape

Result of the eRS delete request for each input item. The exact response body is not visible in the provided source.

The source pack only exposes stubbed modules for this operation, so the return shape could not be confirmed. Deletion may fail if associated records exist and the matching force-delete option is not enabled. This is inferred from the option descriptions, not confirmed in the source.

Examples

Example 1: Remove an offboarded employee's resource record along with its future bookings.

Resource ID set to an expression such as {{$json.id}}; Force Delete Options → Force Delete Bookings enabled.

Example 2: Delete a resource and all dependent data.

Resource ID = 123; enable Force Delete Bookings, Force Delete Rates, and Force Delete Timesheet Entries.

Example 3: Bulk-delete many resources without overloading the API.

Resource ID from incoming items; Request Options → Batching with 10 items per batch and 2000 ms interval.

Links

Discussion