def METHOD_NAME(
    self,
    db_session: sqlalchemy.orm.Session,
    kind: typing.Optional[str] = None,
    object_id: typing.Optional[str] = None,
    label_selector: typing.Optional[str] = None,
    force: bool = False,
    grace_period: int = mlrun.config.config.runtime_resources_deletion_grace_period,
):
    kinds = mlrun.runtimes.RuntimeKinds.runtime_with_handlers()
    if kind is not None:
        self.validate_runtime_resources_kind(kind)
        kinds = [kind]
    for kind in kinds:
        runtime_handler = mlrun.api.runtime_handlers.get_runtime_handler(kind)
        if object_id:
            runtime_handler.delete_runtime_object_resources(
                mlrun.api.utils.singletons.db.get_db(),
                db_session,
                object_id,
                label_selector,
                force,
                grace_period,
            )
        else:
            runtime_handler.delete_resources(
                mlrun.api.utils.singletons.db.get_db(),
                db_session,
                label_selector,
                force,
                grace_period,
            )