@app.route('/col/delete/<sid>', methods=('POST',))
@login_required
def col_delete_single(sid):
 source = get_source(sid)
 delete_collection(sid)
 flash(("%s's collection deleted" % (source.journalist_designation,)), 'notification')
 return redirect(url_for('index'))

@ app . route ( '/col/delete/<sid>' , methods = ( 'POST' , ) ) @ login_required def col_delete_single ( sid ) : source = get_source ( sid ) delete_collection ( sid ) flash ( ( "%s's collection deleted" % ( source . journalist_designation , ) ) , 'notification' ) return redirect ( url_for ( 'index' ) )
deleting a single collection from its /col page .