Skip to content

delete_feature_group

delete_feature_group(
    *,
    config_overrides: Optional[SageMakerClientConfig] = None,
    feature_group_name: Optional[FeatureGroupName] = None,
) -> None

Delete the FeatureGroup and any data that was written to the OnlineStore of the FeatureGroup. Data cannot be accessed from the OnlineStore immediately after DeleteFeatureGroup is called.

Data written into the OfflineStore will not be deleted. The Amazon Web Services Glue database and tables that are automatically created for your OfflineStore are not deleted.

Note that it can take approximately 10-15 minutes to delete an OnlineStore FeatureGroup with the InMemory StorageType.

Parameters:

  • feature_group_name (Optional[FeatureGroupName], default: None ) –

    The name of the FeatureGroup you want to delete. The name must be unique within an Amazon Web Services Region in an Amazon Web Services account.

Raises:

Source code in docs_src/capo_sagemaker/_services/sage_maker.py
def delete_feature_group(
    self,
    *,
    config_overrides: Optional[SageMakerClientConfig] = None,
    feature_group_name: Optional[
        "capo_sagemaker.types.feature_group_name.FeatureGroupName"
    ] = None,
) -> None:
    """<p>Delete the <code>FeatureGroup</code> and any data that was written to the <code>OnlineStore</code> of the <code>FeatureGroup</code>. Data cannot be accessed from the <code>OnlineStore</code> immediately after <code>DeleteFeatureGroup</code> is called. </p> <p>Data written into the <code>OfflineStore</code> will not be deleted. The Amazon Web Services Glue database and tables that are automatically created for your <code>OfflineStore</code> are not deleted. </p> <p>Note that it can take approximately 10-15 minutes to delete an <code>OnlineStore</code> <code>FeatureGroup</code> with the <code>InMemory</code> <code>StorageType</code>.</p>

    Args:
        feature_group_name: <p>The name of the <code>FeatureGroup</code> you want to delete. The name must be unique within an Amazon Web Services Region in an Amazon Web Services account. </p>

    Raises:
        capo_sagemaker.errors.resource_not_found.ResourceNotFound: <p>Resource being access is not found.</p>
        capo_sagemaker.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_sagemaker.types.delete_feature_group_request.DeleteFeatureGroupRequest]",
    ) -> OperationResponse[None]:
        import capo_sagemaker._operations.sage_maker.delete_feature_group

        output, http_response = (
            capo_sagemaker._operations.sage_maker.delete_feature_group.delete_feature_group(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteFeatureGroup")
    )
    input_: capo_sagemaker.types.delete_feature_group_request.DeleteFeatureGroupRequest = {}
    if feature_group_name is not None:
        input_["feature_group_name"] = feature_group_name

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output