MCPcopy
hub / github.com/wavetermdev/waveterm / DeleteApp

Function DeleteApp

pkg/waveappstore/waveappstore.go:218–233  ·  view source on GitHub ↗
(appId string)

Source from the content-addressed store, hash-verified

216}
217
218func DeleteApp(appId string) error {
219 if err := ValidateAppId(appId); err != nil {
220 return fmt.Errorf("invalid appId: %w", err)
221 }
222
223 appDir, err := GetAppDir(appId)
224 if err != nil {
225 return err
226 }
227
228 if err := os.RemoveAll(appDir); err != nil {
229 return fmt.Errorf("failed to delete app directory: %w", err)
230 }
231
232 return nil
233}
234
235func validateAndResolveFilePath(appDir string, fileName string) (string, error) {
236 if filepath.IsAbs(fileName) {

Callers

nothing calls this directly

Calls 2

ValidateAppIdFunction · 0.85
GetAppDirFunction · 0.85

Tested by

no test coverage detected