import { getResourceNameFromVersionId } from "./_internal/getResourceNameFromVersionId";
import { removeItemResource } from "@esri/arcgis-rest-portal";
/**
 * Deletes the version specified by the entity id and versionId
 * @param id
 * @param versionId
 * @param owner
 * @param requestOptions
 * @returns
 */
export async function deleteVersion(id, versionId, owner, requestOptions) {
    return removeItemResource(Object.assign(Object.assign({}, requestOptions), { id,
        owner, resource: getResourceNameFromVersionId(versionId) }));
}
//# sourceMappingURL=deleteVersion.js.map