public DeleteTableResult deleteTable(DeleteTableRequest deleteTableRequest)
            throws AmazonServiceException, AmazonClientException {
        ExecutionContext executionContext = createExecutionContext(deleteTableRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        Request<DeleteTableRequest> request = marshall(deleteTableRequest,
                new DeleteTableRequestMarshaller(),
                executionContext.getAwsRequestMetrics());
        // Binds the request metrics to the current request.
        request.setAWSRequestMetrics(awsRequestMetrics);
        Unmarshaller<DeleteTableResult, JsonUnmarshallerContext> unmarshaller = new DeleteTableResultJsonUnmarshaller();
        JsonResponseHandler<DeleteTableResult> responseHandler = new JsonResponseHandler<DeleteTableResult>(unmarshaller);
        return invoke(request, responseHandler, executionContext);
    }
public DeleteTableResult deleteTable ( DeleteTableRequest deleteTableRequest ) throws AmazonServiceException , AmazonClientException { ExecutionContext executionContext = createExecutionContext ( deleteTableRequest ) ; AWSRequestMetrics awsRequestMetrics = executionContext . getAwsRequestMetrics ( ) ; Request < DeleteTableRequest > request = marshall ( deleteTableRequest , new DeleteTableRequestMarshaller ( ) , executionContext . getAwsRequestMetrics ( ) ) ; request . setAWSRequestMetrics ( awsRequestMetrics ) ; Unmarshaller < DeleteTableResult , JsonUnmarshallerContext > unmarshaller = new DeleteTableResultJsonUnmarshaller ( ) ; JsonResponseHandler < DeleteTableResult > responseHandler = new JsonResponseHandler < DeleteTableResult > ( unmarshaller ) ; return invoke ( request , responseHandler , executionContext ) ; }
<p>
Deletes a table and all of its items.
</p>
<p>
If the table is in the <code>ACTIVE</code> state, you can delete it.
If a table is in <code>CREATING</code> or <code>UPDATING</code> states
then Amazon DynamoDB returns a <code>ResourceInUseException</code> .
If the specified table does not exist, Amazon DynamoDB returns a
<code>ResourceNotFoundException</code> .
</p>

@param deleteTableRequest Container for the necessary parameters to
execute the DeleteTable service method on AmazonDynamoDB.

@return The response from the DeleteTable service method, as returned
by AmazonDynamoDB.

@throws ResourceInUseException
@throws LimitExceededException
@throws InternalServerErrorException
@throws ResourceNotFoundException

@throws AmazonClientException
If any internal errors are encountered inside the client while
attempting to make the request or handle the response.  For example
if a network connection is not available.
@throws AmazonServiceException
If an error response is returned by AmazonDynamoDB indicating
either a problem with the data in the request, or a server side issue.