• Documentation
  • Pricing
© 2026 Serverless, Inc. All rights reserved.

Framework

  • Overview
  • Documentation
  • Plugins360
  • Pricing

Learn

  • Blog
  • GuidesUpdated
  • Examples240
  • Courses

Resources

  • Support
  • Security
  • Trust Center
  • Status

Community

  • Slack
  • GitHub47k
  • Forum
  • Meetups

Company

  • About
  • Careers
  • Contact
  • Partners

Legal

  • Terms of Service
  • Privacy Policy
  • Trademark
  • DMCA
Serverless Framework Logo

Serverless Framework

Intro
SetupUpgrading To V4ConceptsTutorialAWS CredentialsLicense Keys
DeployingPackagingBuildingTestingDev ModeServicesFunctions
OverviewHTTP (API Gateway v2)REST (API Gateway v1)ActiveMQApplication Load BalancerAlexa SkillAlexa Smart HomeCloudWatch EventCloudWatch LogCloudFrontCognito User PoolEventBridge EventIoTIoT Fleet ProvisioningKafkaKinesis & DynamoDBMSKRabbitMQS3ScheduleSNSSQSWebsocket
LayersManaged InstancesWeb Apps (Lambda Web Functions)Sandboxes (Lambda MicroVMs)MCP ServersAlertsVersion PruningDomainsIAM Function PermissionsParameters
OverviewSelf-reference serverless.ymlServerless CoreEnvironment VariablesCLI OptionsExternal YAML/JSON FilesJavascript propertiesGitDoppler
OverviewS3 ObjectsSSM Parameter Store & Secrets ManagerCloudFormation Stack Outputs
OverviewVaultTerraform State Output
ResourcesComposing ServicesDeployment BucketStateAgent SkillsPython support
OverviewRuntimeGatewayMemoryBrowserCode InterpreterDev Mode
API Gateway Proxy
OverviewGeneral ConfigurationAuthenticationAPI KeysData SourcesResolversPipeline FunctionsSubstitutionsCachingDelta SyncCustom DomainWAFCLI Commands
Deploying SAM/CFN TemplatesWorkflow Tips
OverviewCreating PluginsCLI OutputCustom CommandsCustom VariablesExtending the Configuration schemaExtending and overriding configuration
OverviewDashboardAxiom
Overviewagent docsagent inspectagent setupagent skills installagent skills list / readdeploydeploy functiondeploy listdevdiffinfoinvokeinvoke localloginlogin awslogin aws ssologsmetricspackageplugin installplugin uninstallprintprunereconcileremoverollbackrollback functionusage
OverviewConcepts
OverviewMetricsTracesTroubleshoot
OverviewNode.jsPython
OutputsProviders
OverviewBranch DeploymentsPreview DeploymentsCustom ScriptsTestingPrivate PackagesNotificationsMono ReposDeploy in your own CI/CDBest PracticesTroubleshootingFAQ
OverviewSetupToolsAWS Integration
Serverless.yml Reference
Examples and TutorialsConfiguration Validation
  1. CLI Reference
  2. Plugin Uninstall

serverless plugin uninstall

serverless plugin uninstall removes a Serverless Framework plugin from the service's npm development dependencies and from the plugins list in serverless.yml. It changes only files in the service directory, nothing in AWS; the next serverless deploy runs without the plugin. It reverses serverless plugin install.

serverless plugin uninstall --name serverless-offline

Run the command in the service directory, the one that holds serverless.yml. It needs npm, and no sign-in or AWS credentials.

Options

serverless plugin uninstall accepts these options:

OptionAliasValueDefaultRequiredDescription
--name-n<package>NoneYesnpm package of the plugin. A version after the name (@1.2.0) is ignored.
--config-cfile pathserverless.yml (any serverless.* file)NoService configuration file to remove the plugin from; npm runs in that file's directory.

The command also accepts --verbose, --debug and --help (-h).

What serverless plugin uninstall changes

serverless plugin uninstall --name <package> makes these changes in the directory of the service configuration file:

  1. Runs npm uninstall --save-dev <package>, which updates package.json, package-lock.json and node_modules.
  2. Removes the package from plugins (or plugins.modules) in serverless.yml, serverless.yaml or serverless.json. When the list ends up empty, the key is removed too. In a YAML file only the plugins block is rewritten; the rest of the file stays as it is.

For serverless.js and serverless.ts, and when plugins is set by a variable, the command uninstalls the package but doesn't edit the file; it prints Can't automatically remove plugin from "serverless.ts" file. Please make it manually. Remove the plugin from the file yourself.

An overrides entry that serverless plugin install added to package.json stays; delete it by hand if you no longer want it.

Run serverless plugin uninstall again

Re-running the command is safe: npm reports nothing to remove, and the plugins list stays as it is. The command never prompts, so it runs the same in a terminal, in CI and from an AI agent.

Output of serverless plugin uninstall

On success the command prints the plugin and the time it took:

✔ Plugin "serverless-offline" uninstalled (2s)

When npm fails, the command prints npm's error output and exits with an error. Without a service configuration file it stops with Configuration file not found.

Examples

Remove a plugin

serverless plugin uninstall --name serverless-offline

Remove a plugin from another configuration file

serverless plugin uninstall --name serverless-offline --config serverless.dev.yml

Related commands

  • serverless plugin install installs a plugin and adds it to plugins.
  • Plugins explains how plugins load and how to write one.
Edit this page
Prev plugin installNextprint

Contents

  • serverless plugin uninstall
  • Options
  • What serverless plugin uninstall changes
  • Run serverless plugin uninstall again
  • Output of serverless plugin uninstall
  • Examples
  • Remove a plugin
  • Remove a plugin from another configuration file
  • Related commands

Related

GuidesPluginsExamplesSlack CommunitySupport