diff --git a/src/resource_clients/build.ts b/src/resource_clients/build.ts index 8c3124d..b935b6f 100644 --- a/src/resource_clients/build.ts +++ b/src/resource_clients/build.ts @@ -43,6 +43,13 @@ export class BuildClient extends ResourceClient { return cast(parseDateFields(pluckData(response.data))); } + /** + * https://docs.apify.com/api/v2#/reference/actor-builds/delete-build/delete-build + */ + async delete(): Promise { + return this._delete(); + } + /** * Returns a promise that resolves with the finished Build object when the provided actor build finishes * or with the unfinished Build object when the `waitSecs` timeout lapses. The promise is NOT rejected diff --git a/src/resource_clients/run.ts b/src/resource_clients/run.ts index 95f1dab..9d1a895 100644 --- a/src/resource_clients/run.ts +++ b/src/resource_clients/run.ts @@ -52,6 +52,13 @@ export class RunClient extends ResourceClient { return cast(parseDateFields(pluckData(response.data))); } + /** + * https://docs.apify.com/api/v2#/reference/actor-runs/delete-run/delete-run + */ + async delete(): Promise { + return this._delete(); + } + /** * https://docs.apify.com/api/v2#/reference/actor-runs/metamorph-run/metamorph-run */