code: public void deleteContent(String spaceId, String contentId) {
          log.debug("deleteContent(" + spaceId + ", " + contentId + ")");
  
          // Will throw if bucket does not exist
          String bucketName = getBucketName(spaceId);
          // Note that the s3Client does not throw an exception or indicate if
          // the object to be deleted does not exist. This check is being run
          // up front to fulfill the DuraCloud contract for this method.
          throwIfContentNotExist(bucketName, contentId);
  
          try {
              s3Client.deleteObject(bucketName, contentId);
          } catch (AmazonClientException e) {
              String err = "Could not delete content " + contentId + " from S3 bucket " +
                           bucketName + " due to error: " + e.getMessage();
              throw new StorageException(err, e, RETRY);
          }
      }
docs: {@inheritDoc}