The error is straightforward: There is a data field that is still referencing this function. As this is also a foreign key, the reference must exist on some form.
It´s a bit hacky, but with a backend function like this, you get the name of the refering form, if you provide the correct frontend function ID:
Here is the code as text for copy-pasting:
DECLARE
BEGIN
RETURN (
SELECT name
FROM app.form
WHERE id IN (
SELECT form_id
FROM app.field
WHERE id IN (
SELECT field_id
FROM app.field_data
WHERE js_function_id = '2ceedacb-48f7-4847-b0a6-103e6d77111c'
)
)
);
END;
$BODY$
Do not forget to supply the correct function ID and to set the return value to TEXT to get the form name.