diff options
Diffstat (limited to 'lib/mattermost/team.rb')
-rw-r--r-- | lib/mattermost/team.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/mattermost/team.rb b/lib/mattermost/team.rb index 2cdbbdece16..75513a9ba04 100644 --- a/lib/mattermost/team.rb +++ b/lib/mattermost/team.rb @@ -14,5 +14,11 @@ module Mattermost type: type }.to_json) end + + # The deletion is done async, so the response is fast. + # On the mattermost side, this triggers an soft deletion + def destroy(team_id:) + session_delete("/api/v4/teams/#{team_id}") + end end end |