SOULs Delete

The souls delete command deletes the CRUD files, tests, and type definition files that were automatically generated by the souls generate command.

souls help delete

$ souls help delete
Commands:
  souls delete connection [CLASS_NAME]                                     # Delete GraphQL Connection
  souls delete edge [CLASS_NAME]                                           # Delete GraphQL Edge
  souls delete help [COMMAND]                                              # Describe subcommands or one specific subcommand
  souls delete job [CLASS_NAME]                                            # Delete Job File in WorkerTemplate
  souls delete manager [MANAGER_NAME] --mutation, --mutation=MUTATION      # Delete GraphQL Mutation Template
  souls delete mutation [CLASS_NAME]                                       # Delete GraphQL Mutation
  souls delete policy [CLASS_NAME]                                         # Delete Policy File Template
  souls delete query [CLASS_NAME]                                          # Delete GraphQL Query
  souls delete resolver [CLASS_NAME]                                       # Delete GraphQL Resolver
  souls delete rspec_factory [CLASS_NAME]                                  # Delete Rspec Factory Test from schema.rb
  souls delete rspec_job [CLASS_NAME]                                      # Delete Rspec Job Test Template
  souls delete rspec_manager [CLASS_NAME] --mutation, --mutation=MUTATION  # Delete Rspec Manager Test Template
  souls delete rspec_mutation [CLASS_NAME]                                 # Delete Rspec Mutation Test from schema.rb
  souls delete rspec_policy [CLASS_NAME]                                   # Delete Rspec Policy Test
  souls delete rspec_query [CLASS_NAME]                                    # Delete Rspec Query Test
  souls delete rspec_resolver [CLASS_NAME]                                 # Delete Rspec Resolver Test
  souls delete scaffold [CLASS_NAME]                                       # Delete Scaffold
  souls delete scaffold_all                                                # Delete Scaffold All Tables from schema.rb
  souls delete type [CLASS_NAME]                                           # Delete GraphQL Type

scaffold

The command deletes the CRUD files, tests, and type definition files that are automatically generated by the souls g scaffold command.

 $ souls delete scaffold MODEL_NAME

type

Delete GraphQL Type.

SOULs command:

 $ souls delete type MODEL_NAME

connection

Delete GraphQL Connection.

SOULs command:

 $ souls delete connection MODEL_NAME

edge

Remove GraphQL Edge.

SOULs command:

 $ souls delete edge MODEL_NAME

model

Delete the Model.

SOULs command:

 $ souls delete model MODEL_NAME

mutation

Remove GraphQL Mutation.

SOULs command:

 $ souls delete mutation MODEL_NAME

job

Add a Job to the Worker.

 $ souls delete job $JOB_NAME

job --mailer option

Create a Mutation for the Mailer template.

 $ souls delete job $JOB_NAME --mailer

policy

Automatically generate Pundit Policy.

SOULs command:

 $ souls delete policy MODEL_NAME

query

Delete GraphQL Query.

SOULs command:

 $ souls delete query MODEL_NAME

resolver

Remove GraphQL Resolver.

SOULs command:

 $ souls delete resolver MODEL_NAME

rspec_factory

Delete the RSpec Factory.

SOULs command:

 $ souls delete rspec_factory MODEL_NAME

rspec_model

Delete the RSpec Model.

SOULs command:

 $ souls delete rspec_model MODEL_NAME

rspec_mutation

Remove the RSpec Mutation.

SOULs command:

 $ souls delete rspec_mutation MODEL_NAME

rspec_policy

RSpec Policy is automatically generated.

SOULs command:

 $ souls delete rspec_policy MODEL_NAME

rspec_query

Delete the Rspec Query.

SOULs command:

 $ souls delete rspec_query MODEL_NAME

rspec_resolver

Remove RSpec Resolver.

SOULs command:

 $ souls delete rspec_resolver MODEL_NAME

rspec_manager

Delete RSpec Manager.

SOULs command:

 $ souls delete rspec_manager MODEL_NAME

rspec_job

Delete RSpec Manager.

SOULs command:

 $ souls delete rspec_job MODEL_NAME