src/entity/Redirection.js
/**
           * Delete the redirection, if it exists.
           */
Delete the redirection, if it exists.
Delete the redirection if it exists .
async delete () {
            const existing = await this.read()
            if (!existing) {
              return Promise.resolve()
            }
            return shortDomainRequest({
              url: `/redirections/${existing.shortId}`,
              method: 'delete'
            })
          }
async delete ( ) { const existing = await this . read ( ) if ( ! existing ) { return Promise . resolve ( ) } return shortDomainRequest ( { url : ` ${ existing . shortId } ` , method : 'delete' } ) }
Delete the redirection, if it exists.
Delete the redirection if it exists .
// Else delete it