Press ESC to close

how to delete a layer in ai using a action