

# Amazon S3 Storage Lens 대시보드 삭제
<a name="storage_lens_deleting"></a>

기본 대시보드는 삭제할 수 없습니다. 그러나 비활성화는 가능합니다. 생성한 대시보드를 삭제하기 전에 다음을 고려하십시오.
+ 대시보드를 삭제하는 대신, 대시보드를 *사용 중지*하여 나중에 다시 사용 설정하도록 설정할 수 있습니다. 자세한 내용은 [S3 콘솔 사용](storage_lens_console_disabling.md) 섹션을 참조하세요.
+ 대시보드를 삭제하면 대시보드와 연결된 모든 구성 설정이 삭제됩니다.
+ 대시보드를 삭제하면 모든 기록 지표 데이터를 사용할 수 없게 됩니다. 이 기록 데이터는 여전히 15개월 동안 보존됩니다. 이 데이터에 다시 액세스하려면 삭제된 리전과 동일한 홈 리전에서 이름이 같은 대시보드를 생성합니다.

## Java용 AWS SDK 사용
<a name="S3DeleteStorageLensConfigurationJava"></a>

**Example – Amazon S3 Storage Lens 대시보드 구성 삭제**  
다음 예제에서는 SDK for Java를 사용하여 S3 Storage Lens 구성을 삭제하는 방법을 보여줍니다.  

```
package aws.example.s3control;

import com.amazonaws.AmazonServiceException;
import com.amazonaws.SdkClientException;
import com.amazonaws.auth.profile.ProfileCredentialsProvider;
import com.amazonaws.services.s3control.AWSS3Control;
import com.amazonaws.services.s3control.AWSS3ControlClient;
import com.amazonaws.services.s3control.model.DeleteStorageLensConfigurationRequest;

import static com.amazonaws.regions.Regions.{{US_WEST_2}};

public class DeleteDashboard {

    public static void main(String[] args) {
        String configurationId = "{{ConfigurationId}}";
        String sourceAccountId = "{{111122223333}}";
        try {
            AWSS3Control s3ControlClient = AWSS3ControlClient.builder()
                    .withCredentials(new ProfileCredentialsProvider())
                    .withRegion({{US_WEST_2}})
                    .build();

            s3ControlClient.deleteStorageLensConfiguration(new DeleteStorageLensConfigurationRequest()
                    .withAccountId(sourceAccountId)
                    .withConfigId(configurationId)
            );
        } catch (AmazonServiceException e) {
            // The call was transmitted successfully, but Amazon S3 couldn't process
            // it and returned an error response.
            e.printStackTrace();
        } catch (SdkClientException e) {
            // Amazon S3 couldn't be contacted for a response, or the client
            // couldn't parse the response from Amazon S3.
            e.printStackTrace();
        }
    }
}
```