{"size": 430, "ext": "js", "max_stars_repo_path": "components/threads/actions/delete-thread/delete-thread.js", "max_stars_repo_name": "saikrishna169/pipedream", "max_stars_repo_stars_event_min_datetime": "2020-03-04T22:11:04.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T03:12:20.000Z", "max_issues_repo_path": "components/threads/actions/delete-thread/delete-thread.js", "max_issues_repo_name": "saikrishna169/pipedream", "max_issues_repo_issues_event_min_datetime": "2020-04-16T04:54:32.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T20:22:33.000Z", "max_forks_repo_path": "components/threads/actions/delete-thread/delete-thread.js", "max_forks_repo_name": "saikrishna169/pipedream", "max_forks_repo_forks_event_min_datetime": "2020-03-30T21:19:31.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-28T12:23:27.000Z"}
{"max_stars_count": 2387, "max_issues_count": 2248, "max_forks_count": 1697, "avg_line_length": 17.9166666667, "max_line_length": 48, "alphanum_fraction": 0.5534883721}
const threads = require("../../threads.app.js");

module.exports = {
  key: "threads-delete-thread",
  name: "Delete a Thread",
  description: "Delete a thread",
  version: "0.0.1",
  type: "action",
  props: {
    threads,
    threadID: {
      propDefinition: [
        threads,
        "threadID",
      ],
    },
  },
  async run() {
    return await this.threads.deleteThread({
      threadID: this.threadID,
    });
  },
};
