Deleting a security profile
- In the management console
, select the folder containing the security profile. - In the list of services, select Smart Web Security.
- In the profile row, click
and select Delete. - Confirm the deletion.
If you do not have the Yandex Cloud command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
-
View the description of the CLI command for deleting a security profile:
yc smartwebsecurity security-profile delete --help
-
To view a list of current security profiles in the default folder, run this command:
yc smartwebsecurity security-profile list
Result:
+----------------------+-------------------+---------------------+----------------+------------+-------------+ | ID | NAME | CREATED | DEFAULT ACTION | CAPTCHA ID | RULES COUNT | +----------------------+-------------------+---------------------+----------------+------------+-------------+ | fev3s055oq64******** | my-new-profile | 2024-08-05 06:57:18 | DENY | | 1 | | fevlqk8vei9p******** | my-sample-profile | 2024-08-05 06:57:28 | DENY | | 2 | +----------------------+-------------------+---------------------+----------------+------------+-------------+
-
To delete a security profile, run this command, specifying the profile name or ID:
yc smartwebsecurity security-profile delete <security_profile_name_or_ID>
-
To make sure the security profile is deleted, re-run this command:
yc smartwebsecurity security-profile list
Note
Deleting a security profile may affect access to the virtual hosts it is connected to.
For more information about the yc smartwebsecurity security-profile delete
command, see the CLI reference.
Use the delete REST API method for the SecurityProfile resource or the SecurityProfileService/Delete gRPC API call.