DELETE FROM
apicollections
USING
api
WHERE
param=$field$
AND api=api.id
AND api.id=$ifaceId$
AND api.datasource=$dsId$