Deleting LF-Tags - Amazon Lake Formation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Deleting LF-Tags

You can delete LF-Tags that are no longer in use. No check is performed for the presence of the LF-Tag on a Data Catalog resource. If the deleted LF-Tag is associated with a resource, it is no longer visible for the resource, and any principals that were granted permissions on that LF-Tag no longer have the permissions.

Before deleting a LF-Tag, you can optionally use the remove-lf-tags-from-resource command to remove the LF-Tag from all resources.

Only data lake administrators, the LF-Tag creator, or a princiapl that has Drop permission on the LF-Tag can delete a LF-Tag. In addition to the Drop permission, the principal also need lakeformation:DeleteLFTag IAM permission to delete a LF-Tag.

You can delete a LF-Tag by using the Amazon Lake Formation console, the API, or the Amazon Command Line Interface (Amazon CLI).

Console
To delete a LF-Tag (console)
  1. Open the Lake Formation console at https://console.amazonaws.cn/lakeformation/.

    Sign in as a data lake administrator.

  2. In the navigation pane, under LF-Tags and permissions, choose LF-Tags.

  3. On the LF-Tags page, select a LF-Tag, and then choose Delete.

  4. In the Delete tag environment? dialog box, to confirm the deletion, enter the LF-Tag key value in the designated field and then choose Delete.

Amazon CLI
To delete a LF-Tag (Amazon CLI)
  • Enter a delete-lf-tag command. Provide the key of the LF-Tag to delete.

    The following example deletes the LF-Tag with the key region.

    aws lakeformation delete-lf-tag --tag-key region