Last updated: 2019-08-18 22:55:01

1. API Description

API request domain name:

This API deletes a function.

Default API request frequency limit: 20 times/second.

2. Input Parameters

The following parameters are required for requesting this API, including action-specific parameters and common parameters. For more information about common parameters for all requests, see Common Request Parameters.

Parameter name Required Type Description
Action Yes String Common parameter; the name of this API: DeleteFunction
Version Yes String Common parameter; the version for this API: 2018-04-16
Region Yes String Common parameters; for details, see the Region List.
FunctionName Yes String Name of the function to be deleted

3. Output Parameters

Parameter name Type Description
RequestId String The ID of the request. Each request returns a unique ID. The RequestId is required to troubleshoot issues.

4. Sample

Deleting a Function

The following sample shows how to delete a function with specified version and namespace.

Input Sample Code
&<Common request parameter>

Output Sample Code

    "Response": {
        "RequestId": "eac6b301-a322-493a-8e36-83b295459397"

5. Developer Resources

API Explorer

This tool provides various capabilities such as online call, signature verification, SDK code generation and quick API retrieval that significantly reduce the difficulty of using cloud APIs.

6. Error Codes

Only the error codes related to the API business logic are listed below. For other error codes, see Common Error Codes.

Error Code Description
InternalError.System Internal system error.
InvalidParameterValue An invalid value was declared for the input parameter.
ResourceNotFound.FunctionName Function does not exist.
UnauthorizedOperation.CAM CAM authentication failed.