@aws-amplify/storage
Version:
Storage category of aws-amplify
18 lines (15 loc) • 704 B
text/typescript
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import { Amplify } from '@aws-amplify/core';
import { RemoveInput, RemoveOutput } from '../types';
import { remove as removeInternal } from './internal/remove';
/**
* Remove a file from your S3 bucket.
* @param input - The RemoveInput object.
* @return Output containing the removed object key
* @throws service: {@link S3Exception} - S3 service errors thrown while getting properties
* @throws validation: {@link StorageValidationErrorCode } - Validation errors thrown
*/
export const remove = (input: RemoveInput): Promise<RemoveOutput> => {
return removeInternal(Amplify, input);
};