UNPKG

@aws-amplify/storage

Version:

Storage category of aws-amplify

17 lines (14 loc) 528 B
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 import { AmplifyServer, getAmplifyServerContext, } from '@aws-amplify/core/internals/adapter-core'; import { RemoveInput, RemoveOutput } from '../../types'; import { remove as removeInternal } from '../internal/remove'; export const remove = ( contextSpec: AmplifyServer.ContextSpec, input: RemoveInput ): Promise<RemoveOutput> => { return removeInternal(getAmplifyServerContext(contextSpec).amplify, input); };