title: How do I do a cascade drop using Knex.js in PostgreSQL?
body: <p>I'm getting this error while trying to delete a table(application) which is referenced by another table (page) .</p>
  
  <pre><code>knex.schema.dropTable("application").exec();
  </code></pre>
  
  <p>Error is</p>
  
  <pre><code>Possibly unhandled error: cannot drop table application because other objects depend on it
  at Connection.parseE (/home/balan/node_modules/pg/lib/connection.js:526:11)
  at Connection.parseMessage (/home/balan/node_modules/pg/lib/connection.js:356:17)
  at Socket.&lt;anonymous&gt; (/home/balan/node_modules/pg/lib/connection.js:105:22)
  at Socket.EventEmitter.emit (events.js:95:17)
  at Socket.&lt;anonymous&gt; (_stream_readable.js:745:14)
  at Socket.EventEmitter.emit (events.js:92:17)
  at emitReadable_ (_stream_readable.js:407:10)
  at emitReadable (_stream_readable.js:403:5)
  at readableAddChunk (_stream_readable.js:165:9)
  at Socket.Readable.push (_stream_readable.js:127:10)
  </code></pre>